Skip to content

Commit

Permalink
Merge pull request #167 from trackit/feat/tagbot-diff
Browse files Browse the repository at this point in the history
Add origin to differentiate tagbot/trackit user
  • Loading branch information
simonmeyerrr authored Feb 25, 2021
2 parents 446f61f + f7d03f5 commit 78a294a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/api/auth.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { call } from './misc.js';

export const login = (email, password, awsToken) => {
return call('/user/login', 'POST', {email, password, awsToken});
return call('/user/login', 'POST', {email, password, awsToken, origin: "trackit"});
};

export const register = (email, password, awsToken) => {
return call('/user', 'POST', {email, password, awsToken});
return call('/user', 'POST', {email, password, awsToken, origin: "trackit"});
};

export const recoverPassword = (email) => {
return call('/user/password/forgotten', 'POST', {email});
return call('/user/password/forgotten', 'POST', {email, origin: "trackit"});
};

export const renewPassword = (id, password, token) => {
Expand Down
2 changes: 1 addition & 1 deletion src/api/aws/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const getAccountViewer = (accountID, token) => {
};

export const addAccountViewer = (accountID, email, permissionLevel, token) => {
return call(`/user/share?account-id=${accountID}`, 'POST', {email, permissionLevel}, token);
return call(`/user/share?account-id=${accountID}`, 'POST', {email, permissionLevel, origin: "trackit"}, token);
};

export const editAccountViewer = (sharedID, permissionLevel, token) => {
Expand Down

0 comments on commit 78a294a

Please sign in to comment.