<http://www.web2py.com/books/default/image/29/schema_auth.png>
Yes. You can find the user logged current with : auth.user.id , and search them using the dal, i.e , db.auth_user[auth.user.id] and return the data of user, thereby verifying the field "password" ( of table ) with "form.new_password" ( name of form field that you create it.). All this overwriting the view user/change_password ( if you don't have changed value of url retrieve password ) , and doing the operations needed. Tip: Before submit of form user, try use .validate() at form to handled this things. Basicaly it's this.I think :D Em quinta-feira, 23 de junho de 2016 12:53:47 UTC-3, Marvix escreveu: > > Hello, > > when an user is changing his password, is it possible to check if it is > equal to the current? and refuse it in that case? > > Thanks! > -- 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.