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 @@

Welcome to Bitraf

- - + +
@@ -27,16 +29,14 @@

Welcome to Bitraf

+ autocomplete="username" autocapitalize="off" ng-model="ctrl.loginForm.username" />
+ autocomplete="current-password" ng-model="ctrl.loginForm.password" />
@@ -59,25 +59,22 @@

Welcome to Bitraf

- +
- +
+ autocomplete="username" autocapitalize="off" ng-model="ctrl.signupForm.username" />
- +
+ autocomplete="new-password" ng-model="ctrl.signupForm.password" />
@@ -113,7 +108,8 @@

There are more steps!

  • Signing up for an account does not automatically start a membership at Bitraf.
  • -
  • You can complete becoming a member by logging in, choosing a membership level, and setting up a credit card.
  • +
  • You can complete becoming a member by logging in, choosing a membership level, and setting up a credit + card.
  • You can always change or cancel your memebership at any time.
@@ -148,4 +144,4 @@

{{ ctrl.message }}

Ok!
- + \ No newline at end of file