Re: [web2py] How to disable modifying Email in auth.profile()

2013-06-06 Thread 冷春辉
Thanks Martin, it's a easy solution. On Jun 6, 2013 3:38 PM, "Marin Pranjić" wrote: > With this line you will disable edit of email field: > db.auth_user.email.writable = False > > Email will still be printed in form but read only. > > You can remove it completely from form by adding: > > db.auth

Re: [web2py] How to disable modifying Email in auth.profile()

2013-06-06 Thread Marin Pranjić
With this line you will disable edit of email field: db.auth_user.email.writable = False Email will still be printed in form but read only. You can remove it completely from form by adding: db.auth_user.email.readable = False You should put this lines conditionally, for example in default.py us

[web2py] How to disable modifying Email in auth.profile()

2013-06-06 Thread Lio
Hello guys, In my app I use email as login user name, but I found in app/default/user/profile the email can be modified. This seems to be a risk either the user may lose his account by accidentally change email or hacked by others in some way. The solution I can think of is customize the profil