Make firstuseauthenticator the default

Fixes #14
This commit is contained in:
yuvipanda
2018-07-03 11:54:42 -07:00
parent 3ee26118ae
commit 2b20a0b766
2 changed files with 4 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ import yaml
# User provided config is merged into this
default = {
'auth': {
'type': 'dummy',
'type': 'firstuse',
'dummy': {}
},
'users': {
@@ -60,6 +60,8 @@ def update_auth(c, config):
if password is not None:
c.DummyAuthenticator.password = password
return
elif auth['type'] == 'firstuse':
c.JupyterHub.authenticator_class = 'firstuseauthenticator.FirstUseAuthenticator'
def update_userlists(c, config):