Closed themousepotato closed 5 years ago
Why? It is good to have ghname as user on the page. Is there no other way, we can wait and get a better fix.
Another way is making present_flag
as global and feeding it to jinja. But, that will make the same changes. It will be a permanent fx tho.
It would be preferable and also we want to display separate pages for registered and unregistered users on the registration page.
On Tue 11 Dec, 2018, 17:28 Navaneeth Suresh <notifications@github.com wrote:
Another way is making present_flag as global and feeding it to jinja. But, that will make the same changes. It will be a permanent fx tho.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kossiitkgp/kwoc/pull/149#issuecomment-446177518, or mute the thread https://github.com/notifications/unsubscribe-auth/AfStIBWjr0x-nkWRUjOKduHp5PeCR6cHks5u353cgaJpZM4ZNPtk .
Meanwhile, work on a better fix.
@thealphadollar Abe have you tested this? I tried testing it on server. It's not working :disappointed:
Yup!
@thealphadollar @yashrsharma44 @TheLethalCode I haven't tested this. This is a quick explicit fix. Will work for now. What we were doing was checking whether the auth has got a valid response from GitHub but, we weren't feeding jinja a bool var of user existence in the JSON. I have set
g.ghname = "Login"
to make the auth inactive on/student_registration
.