From 1d1b66f4a0ae069965fd1541418f2a9bda654659 Mon Sep 17 00:00:00 2001 From: Logan Fick Date: Thu, 7 Jun 2018 20:37:58 -0400 Subject: Fixed incorrect function name. --- app/controllers/sessions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3