smpallen99 / coherence

Coherence is a full featured, configurable authentication system for Phoenix
MIT License
1.27k stars 224 forks source link

Manual user login doing redirect twice. #374

Closed pradosh987 closed 6 years ago

pradosh987 commented 6 years ago

I am trying to do manual login using but its doing redirect twice. First redirect has all flash content and second one doesn't.

Coherence.Config.auth_module()
|> apply(Coherence.Config.create_login(), [conn, user, [id_key: Coherence.Config.schema_key()]])
|> redirect(to: "/")
pradosh987 commented 6 years ago

Solved it. It is an issue with safari. If I do redirect in tab which in pinned, it does it twice, in normal tab it works find. Stupid issue wasted lot of my time.