Skip to content

How to generate a valid CSRF token in after_create_account? #39

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

You must be logged in to vote

I'm not able to reproduce this behaviour in the official demo app, for me the CSRF token is present in after_create_account and correctly returned in the response. Do you think you could create a minimal Rails app that reproduces the issue?

I thought this might be related to Rodauth clearing the whole session when logging the user in (to prevent session fixation attacks), but the user is autologged in after after_create_account is called.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@renchap
Comment options

@janko
Comment options

@renchap
Comment options

Answer selected by renchap
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