Skip to content

Commit

Permalink
Account Registration (#412)
Browse files Browse the repository at this point in the history
After a user registers, they'll see account/activate which now has received a small update in order to be more welcoming and easier to understand for new users.
  • Loading branch information
JaviTrek authored Jan 2, 2023
1 parent 0274e4e commit bdf8ffb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions templates/mixins/flash-messages.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mixin flash-messages(messages)
div.alert(class=flash['class'])
ul.flash-errors
if flash.messages
- for (var i = 0; i < flash.messages.length; i++)
li <strong>#{flash.type}</strong> !{flash.messages[i].msg}
if flash.messages[0].msg
- for (var i = 0; i < flash.messages.length; i++)
li <strong>#{flash.type}</strong> !{flash.messages[i].msg}

13 changes: 9 additions & 4 deletions templates/views/account/activate.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ extends ../../layouts/default
include ../../mixins/flash-messages
include ../../mixins/form/account
block bannerMixin
block bannerData
- var bannerImage = "activate"
- var bannerFirstTitle = "Complete FAForever Registration"
- var bannerSubTitle = `Hello ${username}, please define your password in order to create your account.`

block content
.activationContainer
br
br
h1 Welcome #{username ? username : ''} to FAF!
h3 Just set your new account's password below and your registration will be complete.

+flash-messages(flash)
.column12
form(method='post',action="/account/activate?username="+username+"&token="+token,data-toggle="validator")
- passwordName = passwordName || 'password'
Expand All @@ -30,6 +31,10 @@ block content
.form-actions
br
button(type='submit') Register
br
br
br


block js
script(src='/js/account.min.js')

0 comments on commit bdf8ffb

Please sign in to comment.