summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <dcariotti24@gmail.com>2020-06-26 12:13:59 +0200
committerGitHub <noreply@github.com>2020-06-26 12:13:59 +0200
commit74cb76adb582b294a1529f2803e017f7b465000b (patch)
treefb125269c052395aff67b924cd958003478c0dd9
parent15c76a66ec5289d0fd3c5aa2c1537ad0c1a715c4 (diff)
fix: user must be no-admin by default
-rw-r--r--frest/auth/routes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/frest/auth/routes.py b/frest/auth/routes.py
index cb3f85c..fac48d0 100644
--- a/frest/auth/routes.py
+++ b/frest/auth/routes.py
@@ -101,7 +101,7 @@ def new_user():
email=form.get("email"),
password=form.get("password"),
name=form.get("name"),
- is_admin=form.get("is_admin"),
+ is_admin=False,
)
t = Token(user=u)
db.session.add(u)