diff options
-rw-r--r-- | stashbox/models.py | 4 | ||||
-rw-r--r-- | stashbox/stashbox.db | bin | 7168 -> 7168 bytes | |||
-rw-r--r-- | stashbox/stashbox.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/stashbox/models.py b/stashbox/models.py index 41a58d2..0f402ba 100644 --- a/stashbox/models.py +++ b/stashbox/models.py @@ -96,9 +96,9 @@ def get_user(id): where_vars = {'id': id} return get_single(db.select('user', where=web.db.sqlwhere(where_vars))) -def update_user(id, name, password): +def update_user(id, username, password): db.update('user', where="id=$id", vars=locals(), - name=name, password=password) + username=username, password=password) def authorize_user(user_id, folder_id): if not is_authorized(user_id, folder_id): diff --git a/stashbox/stashbox.db b/stashbox/stashbox.db Binary files differindex 0f5edd7..26debd3 100644 --- a/stashbox/stashbox.db +++ b/stashbox/stashbox.db diff --git a/stashbox/stashbox.py b/stashbox/stashbox.py index bd17d1b..d79f729 100644 --- a/stashbox/stashbox.py +++ b/stashbox/stashbox.py @@ -197,9 +197,9 @@ class EditUser: form_update.fill(user) return render.index(form) - models.update_user(id, form.d.name, form.d.password) + models.update_user(id, form.d.username, form.d.password) - session._initializer['messages'].append('Updated user %s' % form.d.name) + session._initializer['messages'].append('Updated user %s' % form.d.username) raise web.seeother('/user/%s/edit/' % id) |