mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Default service name if service name is not set on the session.
Pop service name off the session on sign out.
This commit is contained in:
@@ -8,5 +8,7 @@ from app.main import main
|
||||
@main.route('/sign-out', methods=(['GET']))
|
||||
@login_required
|
||||
def sign_out():
|
||||
if session.get('service_name', None):
|
||||
session.pop('service_name')
|
||||
logout_user()
|
||||
return redirect(url_for('main.index'))
|
||||
|
||||
Reference in New Issue
Block a user