[web2py] Re: user name case sensitivity

2016-08-14 Thread Michael M
That makes complete sense.  ill spin up another app and give it a try. 
 Thank-you for responding to that.  :)

On Friday, August 12, 2016 at 8:36:51 PM UTC-7, Joe Barnhart wrote:
>
> There is one important issue -- the line setting the case sensitivity on 
> auth.settings must occur BEFORE the tables are generated.  If the line 
> occurs after the auth table is generated it has no effect.  At lease this 
> was the case when I first ran afoul of it a year ago.
>
> -- Joe
>
>
> On Tuesday, July 19, 2016 at 4:47:49 PM UTC-7, Michael Messmer wrote:
>>
>> I added it and it still didn't work.  But I am using LDAP-AD login 
>> method. 
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: user name case sensitivity

2016-08-12 Thread Joe Barnhart
There is one important issue -- the line setting the case sensitivity on 
auth.settings must occur BEFORE the tables are generated.  If the line 
occurs after the auth table is generated it has no effect.  At lease this 
was the case when I first ran afoul of it a year ago.

-- Joe


On Tuesday, July 19, 2016 at 4:47:49 PM UTC-7, Michael Messmer wrote:
>
> I added it and it still didn't work.  But I am using LDAP-AD login method. 
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: user name case sensitivity

2016-07-19 Thread Michael Messmer
I added it and it still didn't work.  But I am using LDAP-AD login method. 


The method I use is:

def user():
if request.args(0) == 'login' and request.post_vars.username:
request.post_vars.username = request.vars.username = 
request.post_vars.username.upper() #or .lower() if you prefer.
return dict(form=auth())



On Monday, July 18, 2016 at 8:23:40 AM UTC-7, Antonio Salazar wrote:
>
> In db.py, after declaring auth, use this to save all usernames and emails 
> as lowercase.
>
> auth.settings.username_case_sensitive = False
> auth.settings.email_case_sensitive = False
>
>
> On Friday, July 15, 2016 at 11:37:41 AM UTC-5, kstesr...@gmail.com wrote:
>>
>>
>> Team,
>>
>> I see the login user is case sensitive ,can we make it in-sensitive i.e 
>> to treat us...@gmail.com and us...@gmail.com as the same.
>>
>> Sri
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: user name case sensitivity

2016-07-18 Thread Antonio Salazar
In db.py, after declaring auth, use this to save all usernames and emails 
as lowercase.

auth.settings.username_case_sensitive = False
auth.settings.email_case_sensitive = False


On Friday, July 15, 2016 at 11:37:41 AM UTC-5, kstesr...@gmail.com wrote:
>
>
> Team,
>
> I see the login user is case sensitive ,can we make it in-sensitive i.e to 
> treat us...@gmail.com  and us...@gmail.com  as 
> the same.
>
> Sri
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.