marckunze / rancor

Ranked Choice voting tool repo
https://rancor.herokuapp.com
Other
0 stars 0 forks source link

Logout button on navbar #36

Closed MarkHammondJr closed 9 years ago

MarkHammondJr commented 9 years ago

Needs a logout button for when user is logged in.

marckunze commented 9 years ago

@dennisccsf or @ptaal do one of you guys want to tackle this? Should be able to modify the layout.erb to add one more button for starters on this.

dennisccsf commented 9 years ago

I will take a stab at it. I'm thinking I will need to make changes to navbar to remove signin and register items and replace with the logout button.

still getting familiar with sinatra and ruby...is there anything i reference to tell me that a user is logged in?

MarkHammondJr commented 9 years ago

env['warden'].authenticated?

That question mark is not me being doubtful. The method returns a boolean value.

marckunze commented 9 years ago

Wasn't this fixed on an earlier commit? Can't see anything in the log, but appears correct, am I missing anything?

MarkHammondJr commented 9 years ago

It was. The issue was just never closed.