level12 / keg-app-cookiecutter

0 stars 0 forks source link

Default nav needs login link #136

Closed rsyring closed 3 years ago

rsyring commented 3 years ago

And also should be smarter about when login/logout shows based on authentication status of user. See: https://github.com/level12/keg-auth/issues/125

guruofgentoo commented 3 years ago

This should do the trick with keg-auth 0.4.0:

NavItem('Logout', NavURL('auth.logout')),
NavItem('Login', NavURL('auth.login', requires_anonymous=True)),