Commit e61839e0 authored by Vytor Calixto's avatar Vytor Calixto 👾
Browse files

Corrigido texto do e-mail e add model de usuario em routes.js

parent 365ccc75
......@@ -22,7 +22,7 @@ function sendVerifyToUser(usuario, protocol, host) {
console.log('Não foi possível criar o token')
return
}
var text = 'Olá, ' + usuario.nome + '. Clique neste link para validar sua conta: ' + protocol + '://' + host + '/v1/u/verify/' + token
var text = 'Olá, ' + usuario.nome + '. Clique neste link para validar sua conta: ' + protocol + '://' + host + '/verify/' + token
var message = {
from: 'PET Computação UFPR <pet@inf.ufpr.br>',
to: usuario.nome + ' <' + usuario.email + '>',
......
......@@ -32,6 +32,7 @@ var fs = require('fs')
var libs = process.cwd() + '/libs/'
var VerificationToken = require(libs + 'model/verificationToken')
var Usuario = require(libs + 'model/usuario')
var role = require(libs + 'role')
router.get('/', function(req, res) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment