Skip to content

Does creating an account in the console trigger before_create_account hook? #277

Answered by janko
whysthatso asked this question in Q&A
Discussion options

You must be logged in to vote

It doesn't. It skips the account creation lifecycle, and only uses Rodauth to hash the password. If you want the hook to be called, you should use the internal_request feature, concretely the create_account class method it provides.

RodauthApp.rodauth.create_account(login: "[email protected]", password: "secret123")

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by whysthatso
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants