diff --git a/flask_version/authentication.py b/flask_version/authentication.py
index 2b7b6e2..e905c61 100644
a
|
b
|
waiting = {} |
94 | 94 | @authentication.route('/register', methods = ['GET','POST']) |
95 | 95 | @with_lock |
96 | 96 | def register(): |
| 97 | if not g.notebook.user_manager().get_accounts(): |
| 98 | return redirect(url_for('base.index')) |
97 | 99 | from sagenb.notebook.misc import is_valid_username, is_valid_password, \ |
98 | 100 | is_valid_email, do_passwords_match |
99 | 101 | from sagenb.notebook.challenge import challenge |
diff --git a/sagenb/notebook/run_notebook.py b/sagenb/notebook/run_notebook.py
index da1a136..ba81147 100644
a
|
b
|
def notebook_twisted(self, |
292 | 292 | |
293 | 293 | if accounts is not None: |
294 | 294 | nb.user_manager().set_accounts(accounts) |
295 | | elif not nb.conf()['accounts']: |
296 | | nb.user_manager().set_accounts(True) |
| 295 | else: |
| 296 | nb.user_manager().set_accounts(nb.conf()['accounts']) |
297 | 297 | |
298 | 298 | if nb.user_manager().user_exists('root') and not nb.user_manager().user_exists('admin'): |
299 | 299 | # This is here only for backward compatibility with one |