Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Introducing locked flag for users and checking if unset before every …
Browse files Browse the repository at this point in the history
…login. Closes #32
  • Loading branch information
peterbanda committed Oct 1, 2019
1 parent b02d07e commit 08c50b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app-migrate/db/db-update-0.8.1
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ db.getCollection('dataset_settings').update({},
db.getCollection('dataset_imports').update({'setting': {$exists: true}},
{$set:{"setting.showSideCategoricalTree":true}},
{multi: true}
)

db.getCollection('users').update({},
{$set:{"locked":false}},
{multi: true}
)
2 changes: 0 additions & 2 deletions conf/core.routes
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ GET /login
POST /login org.ada.web.controllers.AuthController.authenticate
GET /logout org.ada.web.controllers.AuthController.logout
GET /loggedout org.ada.web.controllers.AuthController.loggedOut
GET /unauthorized org.ada.web.controllers.AuthController.unauthorized


# for no-authentication access
GET /loginBasic org.ada.web.controllers.AuthController.loginBasic
Expand Down

0 comments on commit 08c50b9

Please sign in to comment.