diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-06 15:55:54 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-06 15:55:54 +0530 |
commit | 2d5ab7bc6fc0322016122995382b17555aca0f33 (patch) | |
tree | 9ef4f167fabe6f4bfa7c5ac00b5cf3503c5ae7ac /app/views | |
parent | d3ab83d7d10a06697fa0b764d11166fcfbd16cc6 (diff) |
removed unnecessary else
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/auth.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/views/auth.py b/app/views/auth.py index 2833479..a0111a8 100644 --- a/app/views/auth.py +++ b/app/views/auth.py @@ -66,8 +66,7 @@ def signin_user(): if user.confirmation: flask_login.login_user(user) return redirect(url_for("user_dashboard")) - else: - flash("Please Confirm Your Email First.") + flash("Please Confirm Your Email First.") else: flash("Incorrect Password") else: @@ -107,11 +106,10 @@ def login_with_google_auth(): if user.login_type == "google": flask_login.login_user(user) return redirect(url_for("user_dashboard")) - else: - flash( - "An account already exists for this email. Please use your password to log in." - ) - return redirect(url_for("signin_user")) + flash( + "An account already exists for this email. Please use your password to log in." + ) + return redirect(url_for("signin_user")) else: return render_template( "message.html", |