Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

Commit

Permalink
feature(login): change user login url
Browse files Browse the repository at this point in the history
- change login url

[finishes #162686442]
  • Loading branch information
tersoo-atsen authored and mbilesanmi committed Dec 16, 2018
1 parent 8072e61 commit 79a24f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/UsersController.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class UsersController {

const userId = userFound.id;
const token = createToken(userId, lifeSpan);
const loginUrl = `${process.env.API_BASE_URL}/users/login?`
+ `token=${token}`;
const loginUrl = `${process.env.FRONT_END_BASE_URL}/welcome?token=`
+ `${token}`;

// send email with link to login to user
sendEmail(userFound, loginLinkMessage(loginUrl, token));
Expand Down

0 comments on commit 79a24f3

Please sign in to comment.