aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/user.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-07-01 21:59:45 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-07-01 21:59:45 +0200
commite277c21a5abdf9a1cb7c06705a46d57b71a61003 (patch)
tree81395627c865784060174bf06031428e0b3ef573 /src/web/views/user.py
parentUpdated Runtime for Heroku and Pipfile.lock (diff)
downloadnewspipe-e277c21a5abdf9a1cb7c06705a46d57b71a61003.tar.gz
newspipe-e277c21a5abdf9a1cb7c06705a46d57b71a61003.tar.bz2
newspipe-e277c21a5abdf9a1cb7c06705a46d57b71a61003.zip
Removed useless code.
Diffstat (limited to 'src/web/views/user.py')
-rw-r--r--src/web/views/user.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/web/views/user.py b/src/web/views/user.py
index fdcde238..1482eaa3 100644
--- a/src/web/views/user.py
+++ b/src/web/views/user.py
@@ -161,36 +161,3 @@ def confirm_account(token=None):
else:
flash(gettext('Impossible to confirm this account.'), 'danger')
return redirect(url_for('login'))
-
-
-# @user_bp.route('/recover', methods=['GET', 'POST'])
-# def recover():
-# """
-# Enables the user to recover its account when he has forgotten
-# its password.
-# """
-# form = RecoverPasswordForm()
-# user_contr = UserController()
-#
-# if request.method == 'POST':
-# if form.validate():
-# user = user_contr.get(email=form.email.data)
-# characters = string.ascii_letters + string.digits
-# password = "".join(random.choice(characters)
-# for x in range(random.randint(8, 16)))
-# user.set_password(password)
-# user_contr.update({'id': user.id}, {'password': password})
-#
-# # Send the confirmation email
-# try:
-# notifications.new_password_notification(user, password)
-# flash(gettext('New password sent to your address.'), 'success')
-# except Exception as error:
-# flash(gettext('Problem while sending your new password: '
-# '%(error)s', error=error), 'danger')
-#
-# return redirect(url_for('login'))
-# return render_template('recover.html', form=form)
-#
-# if request.method == 'GET':
-# return render_template('recover.html', form=form)
bgstack15