Login form will force username if there is an authenticated user

This commit is contained in:
garrettmills
2020-05-22 09:54:48 -05:00
parent decb83bdbb
commit 4f8c4d641f
5 changed files with 29 additions and 2 deletions

View File

@@ -13,7 +13,9 @@ const auth_routes = {
['middleware::api:Permission', { check: 'v1:auth:traps:list'}],
'controller::api:v1:Auth.get_traps',
],
'/authenticated_user': [
'controller::api:v1:Auth.get_auth_user',
],
'/roles': [
'middleware::auth:APIRoute',
['middleware::api:Permission', { check: 'v1:auth:roles:list' }],