mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:21:18 +08:00
Show date with year in message to banned users who try to log in
This commit is contained in:
@ -30,7 +30,7 @@ class SessionController < ApplicationController
|
||||
if @user.confirm_password?(params[:password])
|
||||
|
||||
if @user.is_banned?
|
||||
render json: { error: I18n.t("login.banned", {date: I18n.l(@user.banned_till, format: :short_no_year)}) }
|
||||
render json: { error: I18n.t("login.banned", {date: I18n.l(@user.banned_till, format: :date_only)}) }
|
||||
return
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user