post process after register

64 views
Skip to first unread message

Murat KAŞIKÇIOĞLU

unread,
Jan 9, 2025, 2:48:38 PM1/9/25
to py4web
Hi, 
How can i call post process/action after successful registration?
Murat.

Massimo

unread,
Jan 12, 2025, 2:29:52 AM1/12/25
to py4web
This should do it, please test is let us know:

auth.on_accept["register"] = lambda form, user: print(f"You registered {user} using this form variables {form.vars}")

Murat KAŞIKÇIOĞLU

unread,
Jan 12, 2025, 8:11:31 AM1/12/25
to py4web
It worked. Thanks for the quick help.

Murat

unread,
Apr 25, 2025, 6:31:08 AM4/25/25
to py4web
Another related question:

How can I get user info?
There is no any info but token after verify_email. 

auth.on_accept["verify_email"] = lambda form, user: verify_after(form=form, user=user)

Thx.

Reply all
Reply to author
Forward
0 new messages