Skip to content

Commit 14a0961

Browse files
committed
Account creation message.
1 parent f9c08b6 commit 14a0961

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

instance/settings-sample.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,4 @@
116116
LOGIN_MESSAGE_1 = ""
117117
LOGIN_MESSAGE_2 = ""
118118
SMS_VERIFICATION_TEMPLATE = 'Your verification code is {code}. If you did not request this, please ignore.'
119+
CREATE_ACCOUNT_MESSAGE = u"This account is for you as an individual. We’ll make one for your company later"

lastuser_oauth/views/login.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def register():
150150
db.session.commit()
151151
flash("You are now one of us. Welcome aboard!", category='success')
152152
return redirect(get_next_url(session=True), code=303)
153-
return render_form(form=form, title='Create an account', formid='register', submit='Register')
153+
return render_form(form=form, title='Create an account', formid='register', submit='Register',
154+
message=current_app.config.get('CREATE_ACCOUNT_MESSAGE'))
154155

155156

156157
@lastuser_oauth.route('/reset', methods=['GET', 'POST'])

0 commit comments

Comments
 (0)