diff --git a/src/server/backend/userRoutes.js b/src/server/backend/userRoutes.js index a1c1e40..9b3f5f8 100644 --- a/src/server/backend/userRoutes.js +++ b/src/server/backend/userRoutes.js @@ -147,6 +147,15 @@ module.exports = ( app, settings ) => { response.send( 'logoutOk' ); } ); + app.get( '/user/resendEmail', ( req, res ) => { + ( async () => { + let tok = generator.generateToken( 60 ); + mailTokens[ tok ] = req.session.username; + mailManager.sendMail( req.session.username, await twoFA.generateSignupEmail( tok, settings.yourDomain, settings.name ), 'Confirm your email', settings.mailSender ); + } )(); + res.send( 'sent' ); + } ); + app.post( '/user/signup', bodyParser.json(), ( request, response ) => { if ( request.body.password && request.body.password === request.body.password2 && request.body.firstName && request.body.name && request.body.country && request.body.mail ) { db.checkDataAvailability( 'users', 'email', request.body.mail ).then( status => { diff --git a/src/server/config/settings.config.json b/src/server/config/settings.config.json index 248086c..657801e 100644 --- a/src/server/config/settings.config.json +++ b/src/server/config/settings.config.json @@ -3,7 +3,7 @@ "setupDone": true, "twoFA":"enforce", "twoFAMode":"enhanced", - "db":"json", + "db":"mysql", "payments":"stripe", "name":"libreevent", "yourDomain":"http://localhost:8080", diff --git a/src/webapp/main/src/App.vue b/src/webapp/main/src/App.vue index 47c5caa..3785074 100644 --- a/src/webapp/main/src/App.vue +++ b/src/webapp/main/src/App.vue @@ -178,11 +178,6 @@ export default { } }, created () { - // if ( window.webpage.engine.trident ) { - // alert( 'Welcome! We have detected that you are still using Internet Explorer or a similar browser. As a modern webapp, libreevent does NOT officially support Internet Explorer. If you run into problems whilst using this webapp, please switch to a modern browser like Firefox.' ) - // } else if ( window.webpage.engine.presto ) { - // alert( 'Welcome! We have detected that you are a very old version of Opera or related browser. As a modern webapp, libreevent does only support modern browsers. If you run into issues whilst using this webapp, please switch to a modern browser, like Firefox.' ) - // } this.theme = localStorage.getItem( 'theme' ) ?? ''; if ( window.matchMedia( '(prefers-color-scheme: dark)' ).matches || this.theme === '☼' ) { document.documentElement.classList.add( 'dark' ); @@ -191,6 +186,21 @@ export default { document.documentElement.classList.add( 'light' ); this.theme = '☽'; } + console.log( ` + _ _ _ _ + | (_) | | | + | |_| |__ _ __ ___ _____ _____ _ __ | |_ + | | | '_ \\| '__/ _ \\/ _ \\ \\ / / _ \\ '_ \\| __| + | | | |_) | | | __/ __/\\ V / __/ | | | |_ + |_|_|_.__/|_| \\___|\\___| \\_/ \\___|_| |_|\\__| + +You opened the developer tools. Know some coding? Want to help make this software even better? +Then come and join the development team of libreevent, the free and open source event management +solution. Your help is greatly appreciated by the team as well as all its users! + +=> https://github.com/simplePCBuilding/libreevent +=> https://libreevent.janishutz.com/ + ` ); } } diff --git a/src/webapp/main/src/views/user/AccountView.vue b/src/webapp/main/src/views/user/AccountView.vue index 379a841..9350f2a 100644 --- a/src/webapp/main/src/views/user/AccountView.vue +++ b/src/webapp/main/src/views/user/AccountView.vue @@ -2,7 +2,8 @@
Welcome, {{ accountData.first_name }} {{ accountData.name }}!
-| Email @@ -19,8 +20,26 @@ {{ accountData.first_name }} {{ accountData.name }} | |
| + Email notifications + | +
+ Enabled
+ Disabled
+ |
+
| + Two-Factor Authentication + | +
+ Enhanced
+ Standard
+ Disabled
+ |
+