[web2py] Re: Bug report: username as space inside is incorrectly accepted

2013-06-29 Thread Massimo Di Pierro
Please do and I will take care of this asap.

On Saturday, 29 June 2013 10:07:57 UTC-5, Ray (a.k.a. Iceberg) wrote:

 Hi folks,

 First of all, I think white space is generally not acceptable as part of 
 username. But right now web2py accepts username such as space inside.

 Actually, web2py defines the username validator like this:

 [IS_MATCH('[\w\.\-]+'), ...]

 so space is presumably not an intention.


 The fix is:

 [IS_MATCH('[\w\.\-]+', strict=True, error_message='Only allow 
 a-zA-Z0-9_-.'), ...]


 Do I need to write an issue to google code issue tracker?


-- 

--- 
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/groups/opt_out.




[web2py] Re: Bug report: username as space inside is incorrectly accepted

2013-06-29 Thread Ray (a.k.a. Iceberg)
Thanks for prompt response. Issue is created. 
http://code.google.com/p/web2py/issues/detail?id=1568

On Sunday, June 30, 2013 12:17:12 AM UTC+8, Massimo Di Pierro wrote:

 Please do and I will take care of this asap.

 On Saturday, 29 June 2013 10:07:57 UTC-5, Ray (a.k.a. Iceberg) wrote:

 Hi folks,

 First of all, I think white space is generally not acceptable as part of 
 username. But right now web2py accepts username such as space inside.

 Actually, web2py defines the username validator like this:

 [IS_MATCH('[\w\.\-]+'), ...]

 so space is presumably not an intention.


 The fix is:

 [IS_MATCH('[\w\.\-]+', strict=True, error_message='Only allow 
 a-zA-Z0-9_-.'), ...]


 Do I need to write an issue to google code issue tracker?



-- 

--- 
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/groups/opt_out.