Check for logged_in status on /settings
It looks like we aren't checking if people are logged in on https://publiclab.org/settings, causing an error when you load the page without logging in. We should catch and redirect; the controller is here:
I don't actually see a method for settings in https://github.com/publiclab/plots2/blob/master/app/controllers/users_controller.rb -- but routes.rb does say there is one. Maybe it's just an HTML file with no controller action? Probably.
https://github.com/publiclab/plots2/blob/master/app/views/users/settings.html.erb
So maybe a change on this line would just enable a login check even though we don't have an explicit controller action:
https://github.com/publiclab/plots2/blob/master/app/controllers/users_controller.rb#L3
If not, we should just add this to make it explicit:
def settings
end
@gauravano @jywarren @IshaGupta18 is this issue still available, being new here I would like to take up this issue. Thanks
We'd love your help! Sorry for the slow reply!!!
On Sat, Sep 7, 2019 at 10:09 PM yprasant0 [email protected] wrote:
@jywarren https://github.com/jywarren @IshaGupta18 https://github.com/IshaGupta18 is this issue still available, being new here I would like to take up this issue. Thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/5923?email_source=notifications&email_token=AAAF6J6UFT25FCS43K7ZE6DQIRNEFA5CNFSM4HZKRPJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FGBEQ#issuecomment-529162386, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAF6J4X7S3F7L4XF5DEKT3QIRNEFANCNFSM4HZKRPJA .
Hey! This error is still present so I will reformat this as an fto!
This was solved, thanks all! https://github.com/publiclab/plots2/blob/main/app/controllers/users_controller.rb#L3