diff --git a/bin/usermanager.js b/bin/usermanager.js index 7514bcd..cf581c8 100644 --- a/bin/usermanager.js +++ b/bin/usermanager.js @@ -185,11 +185,14 @@ const updateUser = async () => { user.password = User.HashPassword(value, user.salt); continue; } - - user[key] = value; + if (key === "email") + user[key] = value.toLowerCase(); + else + user[key] = value; } user.save(); console.log(answers); + mainREPL(); }); } @@ -279,10 +282,10 @@ Passwort : ${initialPassword} const newUser = User.build({ firstname, lastname, - email, + email : email.toLowerCase(), nickname, - salt : salt, - password : User.HashPassword(initialPassword, salt), + salt : salt, + password : User.HashPassword(initialPassword, salt), role }); diff --git a/package.json b/package.json index adb0600..38ebd2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mdos-web", - "version": "0.0.1", + "version": "1.0.1", "description": "The frontend of MDoS exposed to the world - includes user, rights and access management", "main": "main.js", "scripts": { diff --git a/public/assets/icon_logout.svg b/public/assets/icon_logout.svg new file mode 100644 index 0000000..2723039 --- /dev/null +++ b/public/assets/icon_logout.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/css/_header.scss b/public/css/_header.scss index 22b90c2..4f3c48f 100644 --- a/public/css/_header.scss +++ b/public/css/_header.scss @@ -9,4 +9,13 @@ header { img { max-width: 4rem; } +} + +.version { + position: absolute; + top: 0.5rem; + left: 0.5rem; + font-size: 0.5rem; + color: #555; + z-index: 1000; } \ No newline at end of file diff --git a/public/css/_icons.scss b/public/css/_icons.scss new file mode 100644 index 0000000..8e649bf --- /dev/null +++ b/public/css/_icons.scss @@ -0,0 +1,7 @@ +h1 svg { + color: $blue; + margin-left: 1rem; + font-size: 1.2rem; + vertical-align: middle; + cursor: pointer; +} \ No newline at end of file diff --git a/public/css/mdos.scss b/public/css/mdos.scss index 06ec575..ee531c3 100644 --- a/public/css/mdos.scss +++ b/public/css/mdos.scss @@ -7,6 +7,7 @@ @import "footer"; @import "alert"; @import "spinner"; +@import "icons"; * { box-sizing: border-box; diff --git a/public/index.html b/public/index.html index 4e45d10..9330159 100644 --- a/public/index.html +++ b/public/index.html @@ -2,23 +2,23 @@
Maschinendeck Trier e.V.
@@ -27,19 +27,25 @@