2
0
Fork 0
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:
Neil Lalonde 2013-02-22 11:49:48 -05:00
parent 45ab3ab892
commit ff3e012034
11 changed files with 106 additions and 3 deletions

View file

@ -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