Skip to content
Snippets Groups Projects
Commit 0f61b556 authored by lmtd21's avatar lmtd21 Committed by Richard Fernando Heise Ferreira
Browse files

Issue #19: fix email confirmation

parent f2f1f6e8
No related branches found
No related tags found
1 merge request!18Issue #19: fix email confirmation
......@@ -49,9 +49,11 @@ class V1::UsersController < ApplicationController
end
def confirm_email
link = "https://plataformaintegrada.mec.gov.br/confirmacao-de-email"
@user = User.find_by_confirm_token(params[:id])
if @user
@user.email_activate
redirect_to link
end
end
......
Olá, <%= @user.name %>,
Olá, <%= @user.name %>! </br>
Seja bem vindo ao PortalMec,
Confirme seu email abaixo:
<p>Seja bem-vindo à Plataforma MEC de Recursos Educacionais Digitais.</p></br>
Confirme seu e-mail clicando no link:
<%= confirm_email_v1_user_url(@user.confirm_token)%>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment