*suggestion for apps/_scaffold:*
*- form validation not work during login and register*
** during register : *
form field password and password (again) allow mismatched input (this case 
happen just in web form field, not in database table, when insert mismatch 
database table remain empty)
** during login : *
form validation not work allow empty email and password, while should be 
appears in web form field, the error traceback written in terminal 
*- better 'explicit than implicit' lesson learned from web2py password :*
* better to have a parameter for developer to set password complexity (min 
input, allow uppercase, numeric, etc) in password form field 
* better explicit the password hash stored in database (sha11, md5, or 
combination among them), it's ok, to have the default, but sometime when 
web2py dev want to continue the project that already have the user table, 
not sure how to face it. 
perhaps if you can have a solution for this, it will be great for web2py n 
web3py

*suggestion general*
- before release please check all the python code with bandit especially in 
web3py/web3py folders (already reported in another thread)

error found during testing _scaffold login
ERROR:root:Traceback (most recent call last):
  File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 397, in 
wrapper
    ret = func(*func_args, **func_kwargs)
  File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 366, in 
wrapper
    ret = func(*args, **kwargs)
  File "/Users/sugizo/learn/python/web3py/web3py/utils/auth.py", line 102, 
in responder
    return self.action(path, request.method, request.query, request.json)
  File "/Users/sugizo/learn/python/web3py/web3py/utils/auth.py", line 131, 
in action
    user, error = self.login(**vars)
TypeError: login() missing 2 required positional arguments: 'email' and 
'password'

id= 1

after successful registered in terminal got :
Mock send to [email protected] subject "Confirm email" body:
Welcome a, click 
http://localhost:8000/_scaffold/auth/api/verify_email?token=8afa1f35-6af5-4bef-a6d1-7fe87f9beef9
 
to confirm your email

when following the url in browser got :
{
  "code": 401,
  "message": "not authoried",
  "status": "error"
}

best regards,
stifan

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e0e09b08-edf5-4d94-9c1c-5fa42ab4c3cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to