Merge pull request #716 from lbryio/fixLogin
Change ambiguous routes, more distinct POST/login to POST/auth
This commit is contained in:
commit
c25aa3d4ba
3 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ class ChannelLoginForm extends React.Component {
|
||||||
}),
|
}),
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
};
|
};
|
||||||
request('login', params)
|
request('auth', params)
|
||||||
.then(({success, channelName, shortChannelId, channelClaimId, message}) => {
|
.then(({success, channelName, shortChannelId, channelClaimId, message}) => {
|
||||||
if (success) {
|
if (success) {
|
||||||
this.props.onChannelLogin(channelName, shortChannelId, channelClaimId);
|
this.props.onChannelLogin(channelName, shortChannelId, channelClaimId);
|
||||||
|
|
|
@ -6,7 +6,7 @@ const handleUserRequest = require('../../controllers/auth/user');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'/signup': { method: 'post', controller: [ speechPassport.authenticate('local-signup'), handleSignupRequest ] },
|
'/signup': { method: 'post', controller: [ speechPassport.authenticate('local-signup'), handleSignupRequest ] },
|
||||||
'/login': { method: 'post', controller: handleLoginRequest },
|
'/auth': { method: 'post', controller: handleLoginRequest },
|
||||||
'/logout': { controller: handleLogoutRequest },
|
'/logout': { controller: handleLogoutRequest },
|
||||||
'/user': { controller: handleUserRequest },
|
'/user': { controller: handleUserRequest },
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...require('./auth'),
|
|
||||||
...require('./pages'),
|
...require('./pages'),
|
||||||
...require('./api'),
|
...require('./api'),
|
||||||
|
...require('./auth'),
|
||||||
...require('./assets'),
|
...require('./assets'),
|
||||||
...require('./fallback'),
|
...require('./fallback'),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue