Merge pull request #716 from lbryio/fixLogin

Change ambiguous routes, more distinct POST/login to POST/auth
This commit is contained in:
Shawn K 2018-11-09 23:26:14 -05:00 committed by GitHub
commit c25aa3d4ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ class ChannelLoginForm extends React.Component {
}),
credentials: 'include',
};
request('login', params)
request('auth', params)
.then(({success, channelName, shortChannelId, channelClaimId, message}) => {
if (success) {
this.props.onChannelLogin(channelName, shortChannelId, channelClaimId);

View file

@ -6,7 +6,7 @@ const handleUserRequest = require('../../controllers/auth/user');
module.exports = {
'/signup': { method: 'post', controller: [ speechPassport.authenticate('local-signup'), handleSignupRequest ] },
'/login': { method: 'post', controller: handleLoginRequest },
'/auth': { method: 'post', controller: handleLoginRequest },
'/logout': { controller: handleLogoutRequest },
'/user': { controller: handleUserRequest },
};

View file

@ -1,7 +1,7 @@
module.exports = {
...require('./auth'),
...require('./pages'),
...require('./api'),
...require('./auth'),
...require('./assets'),
...require('./fallback'),
};