Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2019-07-18 16:43:11 +01:00
parent 0af8b95b7d
commit 1f880528bd
4 changed files with 16 additions and 13 deletions

View file

@ -520,11 +520,11 @@ class UsersController < ApplicationController
if user
case user.status
when "pending" then
when "pending"
unconfirmed_login(user)
when "active", "confirmed" then
when "active", "confirmed"
successful_login(user, request.env["omniauth.params"]["referer"])
when "suspended" then
when "suspended"
failed_login t("users.login.account is suspended", :webmaster => "mailto:#{Settings.support_email}").html_safe
else
failed_login t("users.login.auth failure")