add values to table during auth user registration

17 views
Skip to first unread message

karthikeyan p

unread,
Jun 6, 2019, 12:42:59 PM6/6/19
to web2py-users
hi , thanks alot for those, who reading this questions !
1.i dont know how the auth-user is implemented in controller and  about lambda on auth  ??
2.how to customise user registration in auth-user by verifying the user through OTP ; in my project i need to verify the user by  OTP ( i will send otp via sms ); 
3.how to insert a value into a table(another custom table) during auth registration. 

Dave S

unread,
Jun 6, 2019, 4:31:00 PM6/6/19
to web2py-users


On Thursday, June 6, 2019 at 9:42:59 AM UTC-7, karthikeyan p wrote:
hi , thanks alot for those, who reading this questions !
1.i dont know how the auth-user is implemented in controller and  about lambda on auth  ??

I don't know what you are asking here.   Are you trying to customize something?

2.how to customise user registration in auth-user by verifying the user through OTP ; in my project i need to verify the user by  OTP ( i will send otp via sms ); 
3.how to insert a value into a table(another custom table) during auth registration. 

See the callbacks in
<URL:http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=before_insert#callbacks-on-record-insert-delete-and-update>
and just set a callback on auth_user that updates your other table.

 /dps

Reply all
Reply to author
Forward
0 new messages