remove wallet and cyrillic string on registration

This commit is contained in:
deflax 2024-04-05 12:42:13 +03:00
parent 02634be478
commit cc4b2657b7
2 changed files with 1 additions and 4 deletions

View file

@ -149,7 +149,7 @@ def register():
db.session.add(user) db.session.add(user)
db.session.commit() db.session.commit()
token = user.generate_confirmation_token() token = user.generate_confirmation_token()
send_email(user.email, 'Потвърдете Вашата регистрация', 'auth/email/confirm', user=user, token=token) send_email(user.email, 'ForestNet Registration', 'auth/email/confirm', user=user, token=token)
#notify admin #notify admin
newip = request.remote_addr newip = request.remote_addr
if request.headers.getlist("X-Forwarded-For"): if request.headers.getlist("X-Forwarded-For"):

View file

@ -36,8 +36,5 @@ def profile():
form.phone.data = current_user.phone form.phone.data = current_user.phone
form.twofactor.data = current_user.twofactor form.twofactor.data = current_user.twofactor
wallet = "%.2f" % round(current_user.wallet, 3)
#current_app.logger.info('[{}] wallet: {}'.format(current_user.email, wallet))
return render_template('settings/profile.html', page=page, form=form, cuser=current_user) return render_template('settings/profile.html', page=page, form=form, cuser=current_user)