mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Add a link that allows you to send activation email again
This commit is contained in:
parent
45ab3ab892
commit
ff3e012034
11 changed files with 106 additions and 3 deletions
|
@ -27,7 +27,7 @@ class SessionController < ApplicationController
|
|||
render_serialized(@user, UserSerializer)
|
||||
return
|
||||
else
|
||||
render :json => {error: I18n.t("login.not_activated")}
|
||||
render :json => {error: I18n.t("login.not_activated"), reason: 'not_activated', sent_to_email: @user.email_logs.where(email_type: 'signup').order('created_at DESC').first.try(:to_address), current_email: @user.email}
|
||||
return
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue