M-Agoumi/camagru

register isn't working

Closed this issue · 1 comments

the email verification form isn't working due to a bug with CRSF token it's showing it's wrong always, I need to investigate it

the error was caused by the fact that the csrf token was valid only for two requests the creation request and the request after it which is supposed to be the submit but in order to get the verification token sent to mail we visit /debugger and here our second request has expired and token is no more valid, same goes if you open another tab, now the solution is by making tokens as an array