aboutsummaryrefslogtreecommitdiff
path: root/app/views/auth.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-06 15:55:54 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-06 15:55:54 +0530
commit2d5ab7bc6fc0322016122995382b17555aca0f33 (patch)
tree9ef4f167fabe6f4bfa7c5ac00b5cf3503c5ae7ac /app/views/auth.py
parentd3ab83d7d10a06697fa0b764d11166fcfbd16cc6 (diff)
removed unnecessary else
Diffstat (limited to 'app/views/auth.py')
-rw-r--r--app/views/auth.py12
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",