summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan Fick <logaldeveloper@protonmail.com>2018-06-07 20:37:58 -0400
committerLogan Fick <logaldeveloper@protonmail.com>2018-06-07 20:37:58 -0400
commit1d1b66f4a0ae069965fd1541418f2a9bda654659 (patch)
tree3f0c574e36eab891cc9c4cd0f82bd80e9a7d1575
parent6d22462d7a3bebf63b2ea3e28aca4ba75fcac489 (diff)
Fixed incorrect function name.
-rw-r--r--app/controllers/sessions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index 8755730..2681320 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -21,7 +21,7 @@ class SessionsController < ApplicationController
flash[:alert] = "Your account has been disabled!"
elsif user.banned?
flash[:alert] = "You are banned!"
- elsif user.totp_enabled && !TOTP.verify?(user.totp_code, params[:totp_code])
+ elsif user.totp_enabled && !TOTP.valid?(user.totp_code, params[:totp_code])
flash[:alert] = "You're doing it wrong!"
render action: 'new'
return