Skip to content
Permalink
Browse files

Fixes

  • Loading branch information...
nrobinaubertin committed Apr 10, 2019
1 parent 700a9f3 commit 58cc5f7b69a77189d68969ff9099562b6cd602b8
Showing with 3 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 api/src/Service/Mailer.php
@@ -1,4 +1,5 @@
# GLOBAL
*.orig

# API
/api/var/
@@ -32,7 +32,7 @@ public function sendNotificationEmail(User $user, array $news)
$lang = $user->getData()["lang"];
}
$unsubscribe_token = Token::create([
$unsubscribe_token = Token::encode([
"iat" => time() + 86400*60,
"sub" => Token::SUB_STOP_EMAIL_NOTIFICATIONS,
], $user->getApiKey());
@@ -69,7 +69,7 @@ public function sendPasswordReset(User $user)
}
// using the user's password hash as seed allows this token to be one-time usage
$token = Token::create([
$token = Token::encode([
"iat" => time() + 86400,
"sub" => Token::SUB_RESET_PASSWORD,
], $user->getPassword());

0 comments on commit 58cc5f7

Please sign in to comment.
You can’t perform that action at this time.