Login return_to not working when username not found

The return_to parameter is not working when the username is not found.
Please add Oauth milestone.
Thanks
#4456 , #4457 , and this issue are all related.
Yeah they are related. But they are different issues. They are being executed on the same files.
Perhaps if username is not found, it could flash an alert like "we couldn't find that" and land you on the /login page - or even "we couldn't find that username; check for mis-spellings or create a new account" ?
On Sun, Dec 30, 2018 at 12:44 PM Sidharth Bansal [email protected] wrote:
Yeah they are related. But they are different issues. They are being executed on the same files.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/4454#issuecomment-450575893, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ0GVVEX-MxEgVDmWopIZRp8_oyn1ks5u-PtrgaJpZM4ZktMq .
hey @kevinzluo @jywarren @SidharthBansal @gauravano someone is working on this or i can take this up?
No one is working on this. Go ahead on it. Thanks
Hi Jeff, the flash message is coming. Problem is with return_to not working in case user_name does not exist. It is a weird error.
Perhaps if username is not found, it could flash an alert like "we couldn't find that" and land you on the /login page - or even "we couldn't find that username; check for mis-spellings or create a new account" ?
You can check out the gif provided by Kevin. Thanks
great!
On Thu, Jan 3, 2019 at 1:27 PM Sidharth Bansal [email protected] wrote:
Hi Jeff, the flash message is coming. Problem is with return_to not working in case user_name does not exist. It is a weird error.
Perhaps if username is not found, it could flash an alert like "we couldn't find that" and land you on the /login page - or even "we couldn't find that username; check for mis-spellings or create a new account" ?
You can check out the gif provided by Kevin. Thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/4454#issuecomment-451232947, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJyz134SNIqXUsnTi6Yq1Z2gJ1Qp_ks5u_ktXgaJpZM4ZktMq .
@codeIriss are you able to find cause of this bug?
hey @SidharthBansal sorry for the delay. if @user.nil? flash[:warning] = "There is nobody in our system by that name, are you sure you have the right username?" redirect_to '/login' i think we want it to redirect us to login modal not to the login page? right? if not please let me know where to look @SidharthBansal @jywarren @gauravano
If a person is on the login page then redirect to login page is correct else login modal. I hope this makes sense.
On Sat, Jan 12, 2019, 8:56 PM Aditya Kumar <[email protected] wrote:
hey @SidharthBansal https://github.com/SidharthBansal sorry for the delay. if @user.nil? flash[:warning] = "There is nobody in our system by that name, are you sure you have the right username?" redirect_to '/login' i think we want it to redirect us to login modal not to the login page? right? if not please let me know where to look @SidharthBansal https://github.com/SidharthBansal @jywarren https://github.com/jywarren @gauravano https://github.com/gauravano
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/4454#issuecomment-453756128, or mute the thread https://github.com/notifications/unsubscribe-auth/AUACQ4AC0XHbc5U3e9G4y1rDBhUg-7_Cks5vCf6ggaJpZM4ZktMq .
Okay so we should move to login modal then and can u please help where to look for this?
On Sat 12 Jan, 2019, 9:17 PM Sidharth Bansal <[email protected] wrote:
If a person is on the login page then redirect to login page is correct else login modal. I hope this makes sense.
On Sat, Jan 12, 2019, 8:56 PM Aditya Kumar <[email protected] wrote:
hey @SidharthBansal https://github.com/SidharthBansal sorry for the delay. if @user.nil? flash[:warning] = "There is nobody in our system by that name, are you sure you have the right username?" redirect_to '/login' i think we want it to redirect us to login modal not to the login page? right? if not please let me know where to look @SidharthBansal https://github.com/SidharthBansal @jywarren https://github.com/jywarren @gauravano https://github.com/gauravano
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/publiclab/plots2/issues/4454#issuecomment-453756128 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AUACQ4AC0XHbc5U3e9G4y1rDBhUg-7_Cks5vCf6ggaJpZM4ZktMq
.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/4454#issuecomment-453757632, or mute the thread https://github.com/notifications/unsubscribe-auth/Ah0hPAyTxcrFGvW4xRe5ZHtEzcNeIfFxks5vCgOfgaJpZM4ZktMq .
Views/user_sessions.html.erb
On Sat, Jan 12, 2019, 9:20 PM Aditya Kumar <[email protected] wrote:
Okay so we should move to login modal then and can u please help where to look for this?
On Sat 12 Jan, 2019, 9:17 PM Sidharth Bansal <[email protected] wrote:
If a person is on the login page then redirect to login page is correct else login modal. I hope this makes sense.
On Sat, Jan 12, 2019, 8:56 PM Aditya Kumar <[email protected] wrote:
hey @SidharthBansal https://github.com/SidharthBansal sorry for the delay. if @user.nil? flash[:warning] = "There is nobody in our system by that name, are you sure you have the right username?" redirect_to '/login' i think we want it to redirect us to login modal not to the login page? right? if not please let me know where to look @SidharthBansal https://github.com/SidharthBansal @jywarren https://github.com/jywarren @gauravano <https://github.com/gauravano
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/publiclab/plots2/issues/4454#issuecomment-453756128 , or mute the thread <
https://github.com/notifications/unsubscribe-auth/AUACQ4AC0XHbc5U3e9G4y1rDBhUg-7_Cks5vCf6ggaJpZM4ZktMq
.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/publiclab/plots2/issues/4454#issuecomment-453757632 , or mute the thread < https://github.com/notifications/unsubscribe-auth/Ah0hPAyTxcrFGvW4xRe5ZHtEzcNeIfFxks5vCgOfgaJpZM4ZktMq
.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/4454#issuecomment-453757795, or mute the thread https://github.com/notifications/unsubscribe-auth/AUACQ9-YvhpfkL9keMXDSRWWBU14JJLEks5vCgQwgaJpZM4ZktMq .
@codeIriss are you able to debug it?
It is a weird error. I am also trying in case I could find whats wrong.
Moving to #4250 as this will enable the login modal to never be redirected to login page. So this error will vanish. Closing this one. Thanks everyone