From 23b5308f17b2b92a58a5826ce81ab159fa5d83e6 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Thu, 6 Aug 2020 18:25:25 -0700 Subject: [PATCH] Remove duplicated route Resolves #5434 --- securedrop/journalist_app/admin.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/securedrop/journalist_app/admin.py b/securedrop/journalist_app/admin.py index 0d7dd3b2bc..df4b95a8a6 100644 --- a/securedrop/journalist_app/admin.py +++ b/securedrop/journalist_app/admin.py @@ -216,23 +216,6 @@ def edit_user(user_id): return render_template("edit_account.html", user=user, password=password) - @view.route('/edit//new-password', methods=('POST',)) - @admin_required - def set_password(user_id): - try: - user = Journalist.query.get(user_id) - except NoResultFound: - abort(404) - - password = request.form.get('password') - if set_diceware_password(user, password) is not False: - if user.last_token is not None: - revoke_token(user, user.last_token) - user.session_nonce += 1 - db.session.commit() - - return redirect(url_for('admin.edit_user', user_id=user_id)) - @view.route('/delete/', methods=('POST',)) @admin_required def delete_user(user_id):