plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Check for logged_in status on /settings

Open jywarren opened this issue 7 years ago • 4 comments

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

jywarren avatar Jun 19 '19 14:06 jywarren

@gauravano @jywarren @IshaGupta18 is this issue still available, being new here I would like to take up this issue. Thanks

yprasant0 avatar Sep 08 '19 02:09 yprasant0

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 .

jywarren avatar Sep 25 '19 22:09 jywarren

Hey! This error is still present so I will reformat this as an fto!

Uzay-G avatar Jan 11 '20 09:01 Uzay-G

This was solved, thanks all! https://github.com/publiclab/plots2/blob/main/app/controllers/users_controller.rb#L3

jywarren avatar Nov 17 '20 19:11 jywarren