diff --git a/web/src/p2k16/web/core_blueprint.py b/web/src/p2k16/web/core_blueprint.py index d41ee5e..90a1e05 100644 --- a/web/src/p2k16/web/core_blueprint.py +++ b/web/src/p2k16/web/core_blueprint.py @@ -331,7 +331,10 @@ def register_account(): request.json["password"], request.json.get("phone", None)) db.session.commit() - logger.info("new account: {}/{}".format(u.username, u.id)) + service_authz_login() + logger.info(f"new account: {u.username}/{u.id}") + logger.info(f"You can now become a paying member and get door access!") + return jsonify({}) diff --git a/web/src/p2k16/web/static/p2k16/p2k16.js b/web/src/p2k16/web/static/p2k16/p2k16.js index 5d9f44e..902a2b6 100644 --- a/web/src/p2k16/web/static/p2k16/p2k16.js +++ b/web/src/p2k16/web/static/p2k16/p2k16.js @@ -1166,7 +1166,8 @@ self.registerAccount = () => { CoreDataService.register_account(self.signupForm).then(() => { self.signupForm = {}; - P2k16.addInfos("Account created, please log in."); + $window.location.href = "/"; + P2k16.addInfos("Account created, please log in with your username and password"); }); }; diff --git a/web/src/p2k16/web/static/unauthenticated.html b/web/src/p2k16/web/static/unauthenticated.html index b843dd6..af40bed 100644 --- a/web/src/p2k16/web/static/unauthenticated.html +++ b/web/src/p2k16/web/static/unauthenticated.html @@ -12,8 +12,10 @@
{{ ctrl.message }}
Ok!