[web2py] Login form and facebook oauth

2018-09-18 Thread Christian Varas
Hello, I have an app with a facebook login (oauth),I took the example from the documentation and works fine. But I need to enable the login form included in web2py. Does anybody know how to make this 2 login methods works ? or if someone have an example about this? Any help would be very apprecia

[web2py] login form

2017-03-30 Thread karimhaydar31
hello i am new in web2py and also in MVC framework. i want to build a simple login form (username+password) How to build a form + data base?? help me plz best regards karim -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source cod

[web2py] Login form does not present error msg

2016-03-25 Thread Yebach
Hello I am having a problem with my login form I have a login form on my index page. If a user enters wrong pass there is no error msg only page is reloaded Any suggestion? Thank you My controller: def index(): # If user is not logged in if not auth.is_logged_in(): auth.s

Re: [web2py] Re: Add placeholder to password field in web2py login form

2015-07-12 Thread ankit kedia
> >> >> On 17 December 2011 12:04, Anthony > >> wrote: >> >>> Assuming the standard user() function: >>> >>> form = auth() >>> if request.args(0) == 'login': >>> form.element('input.password')

[web2py] Re: Changing primary button color and removal of span - help block in web2py login form

2015-07-04 Thread Annet
Hi, To solve the first issue try: form.element(_type='submit').update(_value='Log in', _class='btn btn-gray') and in your stylesheet style .btn-gray With regard to your second issue, I added the following lines of code to the function def formstyle_bootstrap(form, fields): in gluon/sqlhtml beca

[web2py] Changing primary button color and removal of span - help block in web2py login form

2015-07-03 Thread ankit kedia
Hi I am trying to customize the web2py login form. I want to make these changes: 1) Change background color of 'Log In' button to a custom color - say 'grey' 2) Remove " " block to place 'Log In' and 'Lost password' button in sameline,. F

[web2py] Login form adittional fields

2014-03-20 Thread xgp . latino
Hi all, After looking everywhere, have no more choice but to ask. I defined a custom auth.table with custom fields. Login via 1 of these fields and password on custom login form based on form.custom.widget is working flawlessly. Problem is, now i have to authenticate using 3 fields from this c

[web2py] Login form on index page

2013-12-27 Thread Unnikrishnan Patel
Hi , i am new at web development with web2py , I want to add login or signup form on the index page itself , i tried to go through the codes but its quite tough to figure out , can anyone please help me with that? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt

[web2py] Login form - How can I disable or easily avoid url hex encoding in login_next?

2013-06-19 Thread Georgess
Hi all, For example original url is /init/service/index?service_code=sf_vod but for login form it became as _next = /init/service/index%3Fservice_code%3Dsf_vod '?' and '=' are replaced in URL and after that the modified doesn't work - "invalid request" -- --- You received this message bec

Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Ricardo Pedroso
To give an explanation: when you have: mystring = 'some string encoded with some codec' myunicode = u'%s' % mystring Since you are telling python that you want a unicode object from a string object, python will try do decode (convert) `mystring` with the default encoding, since you didn't explic

Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Yebach
Thanx I removed the 'u' infront of string and it works thanx again On Wednesday, May 15, 2013 11:29:34 AM UTC+2, Ricardo Pedroso wrote: > > > Thank you for showing interest in resolving this. I apologize for not > answering faster > > > > @Massimo - where do I set layout encoding? > > > >

Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Ricardo Pedroso
> Thank you for showing interest in resolving this. I apologize for not > answering faster > > @Massimo - where do I set layout encoding? > > > This is the whole error trace What you show us was not your traceback, here is your traceback, not that hard and concise and just to the point, right? T

Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Yebach
I did the following. I changed the destination of database from my PC. So from my app on my local machine that works on Windows 7 I connect to Postrge database on Linux. After running it and trying to register using characters ščćž ŠČĆŽ there are no problems, also the same type of representatio

Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Niphlod
for all intents and purposes AVOID inlining content if it's meant to be a binary ^_^. Attachments are there for a reason (and also for text files > 0.5 KB)... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group

Re: [web2py] login form registration problem with encoding

2013-05-12 Thread Massimo Di Pierro
Can you please post the complete traceback? On Thursday, 9 May 2013 01:41:30 UTC-5, Yebach wrote: > > The problem occurs when after filling the register form user clicks > register button. > > this is the basic problem of error > > (dp1 > S'output' > p2 > S" 'ascii' codec can't decode byte > 0xc

Re: [web2py] login form registration problem with encoding

2013-05-12 Thread Massimo Di Pierro
Is possible your layout sets an encoding other than utf8? In that case accepted letter would be sent in a POST as Latin1 On Saturday, 11 May 2013 23:08:14 UTC-5, dhmorgan wrote: > > This sounds like an interesting problem. One I have no experience with, > however; yet it deserves an answer. > >

Re: [web2py] login form registration problem with encoding

2013-05-11 Thread dhmorgan
This sounds like an interesting problem. One I have no experience with, however; yet it deserves an answer. Searching this group using the query, "postgreSQL 'ascii' codec can't decode" resulted in only one post other than yours. It's nearly three years old, but the poster did get to a workarou

Re: [web2py] login form registration problem with encoding

2013-05-08 Thread Yebach
The problem occurs when after filling the register form user clicks register button. this is the basic problem of error (dp1 S'output' p2 S" 'ascii' codec can't decode byte 0xc5 in position 2: ordinal not in range(128)" p3 sS'layer' p4 S'/usr/local/web2py/applications/iurnik/controllers/user.py

Re: [web2py] login form registration problem with encoding

2013-05-08 Thread Ricardo Pedroso
On Wed, May 8, 2013 at 7:24 AM, Yebach wrote: > Hello > > So I am using web2py server on Linux. I also have a postgreSQL server on > linux and when a user tries to login via login form and uses letters in name > and surname such as š ž č ć the following error appears 'ascii' codec can't > decode

[web2py] login form registration problem with encoding

2013-05-07 Thread Yebach
Hello I was scouting the internet(s) and could not found the solution for my problem So I am using web2py server on Linux. I also have a postgreSQL server on linux and when a user tries to login via login form and uses letters in name and surname such as š ž č ć the following error appears 'a

[web2py] Login form in sidebar

2012-12-09 Thread Vixus
Hi, I've made a customised login form that gets displayed in the sidebar like so: def mini_login(form): for lbl in form.elements("label"): lbl["_style"] = "display:none" form.element(_name="email")["_placeholder"] = "Email Address" form.element(_name="email")["_class"] = "btn

[web2py] Login form password widget chaned

2012-11-30 Thread Felipe Meirelles
Did you changed the password widget on the login form from INPUT to CAT? Is there a reason to this change? I had a placeholder on it and since DIVs dont have this property, my placeholders don't work any more. --

[web2py] login form error when change db to mongodb

2012-05-09 Thread Scorpion
Hey Guys. I is newbie developer web with web2py. I change db DAL to db = DAL ('mongodb://localhost:27017/apps') and when i register with auth libary (http://127.0.0.1:8000/welcome/default/user/register?_next=/welcome/default/index) the error

[web2py] Login form, can't login..

2012-04-02 Thread Joseph.Piron
Hi all, I got another problem (today's not my day it seems.. :'( ) I am trying to login through ldap but can't and nailed down another problem: On a simple login form url "default/user/login?_next=/app/default/index" I get the classic login html form but can't succeed to log in. Indeed, I traced

Re: [web2py] Re: Add placeholder to password field in web2py login form

2011-12-17 Thread Abhishek Gupta
r() function: >> >> form = auth() >> if request.args(0) == 'login': >> form.element('input.password')['_placeholder'] = 'Password' >> >> Not sure placeholders will show in plain text in all browsers -- may ne

Re: [web2py] Re: Add placeholder to password field in web2py login form

2011-12-16 Thread Abhishek Gupta
ield type dynamically to text on > blur). > > Anthony > > > On Saturday, December 17, 2011 1:20:21 AM UTC-5, Abhishek Gupta wrote: >> >> Hello >> >> I am customizing web2py login form, but appear to stuck with this one. >> >> In a normal HTML5 form,

[web2py] Re: Add placeholder to password field in web2py login form

2011-12-16 Thread Anthony
that (change the field type dynamically to text on blur). Anthony On Saturday, December 17, 2011 1:20:21 AM UTC-5, Abhishek Gupta wrote: > > Hello > > I am customizing web2py login form, but appear to stuck with this one. > > In a normal HTML5 form, for password I can do

[web2py] Add placeholder to password field in web2py login form

2011-12-16 Thread Abhishek Gupta
Hello I am customizing web2py login form, but appear to stuck with this one. In a normal HTML5 form, for password I can do following: But how can i add a similar placeholder field to the web2py login form for the password field. I was able to do the same for the username

[web2py] Login form hidden "_next" field isn't reset

2011-11-17 Thread Vinicius Assef
I'm making some tests with Auth and I'm facing one problem. This is my controller: http://pastebin.com/CNigd5qL I have a normal login form in default/index I'm following this flow: 1) Enter default/index page. 2) Go to default/protected Here, web2py redirects me to login page. It's right. :-) Wh

[web2py] login form errors

2011-11-08 Thread Matt
Greetings, We are currently experiencing an issue with invalid logins not showing errors. For auth we are using a combination of basic auth and PAM, and the actual controller/view combo for the login form is basically the same as the generated scaffolding. When an invalid username/password is enter

[web2py] Login form error "KeyError: 'email'" after customizing db.auth_user table

2011-05-20 Thread haggis
Hi, since I doesn't need any email adresses associated with my users, I changed the schema of the auth_user table like this: file: db.py db.define_table( auth.settings.table_user_name, Field('name', length=32, default='', label='Name'), Field('password', 'password', length=512, reada

[web2py] Login form (remember for 30 days not working)

2011-01-26 Thread Arun K.Rajeevan
My client says even if he set remember me for 30 days he automatically get logged-out after a few hours. Is there any special settings to enable this feature? client says -

[web2py] login form with a popup

2010-12-12 Thread pk
hi together, have somebody of you an example app or a code to make the login form with a popup like javascript colorbox for example?? thanks peter

Re: [web2py] Login form for mobile web access

2010-08-20 Thread Jason Brower
I built it ina a way that the phones had the same content but a different page. So you can use an if statement in the view (or the controller if you wanted) if phone.screensize < 100: {{extend 'layout100.html'}} elif phone.screensize < 200: {{extend 'layout200.html'}} else: {{extend 'layout.html'}

[web2py] Login form for mobile web access

2010-08-20 Thread David Marko
I'm working on mobile access to my web app built on web2py. I'm using mobile.sniffer to detect mobile platform(which works quite well btw.) but I'm not sure how to switch login form based on this detection. (I need more simple login form than for standard web browser access) Any hint on this? Dav

[web2py] Login form

2010-02-05 Thread sveinh
Hi all I would like to include a username+pw field and login button on all pages if the user is not already logged in. I would like to use the built-in functions of web2py to validate the login. What would be the best approach for this? I tried to create the fields (as default/user/login would pr