Merge pull request #806 from mattermost/fixing-redirect
redirect to team after login
Этот коммит содержится в:
@@ -84,7 +84,7 @@ export default class SignupUserComplete extends React.Component {
|
|||||||
if (this.props.hash > 0) {
|
if (this.props.hash > 0) {
|
||||||
BrowserStore.setGlobalItem(this.props.hash, JSON.stringify({wizard: 'finished'}));
|
BrowserStore.setGlobalItem(this.props.hash, JSON.stringify({wizard: 'finished'}));
|
||||||
}
|
}
|
||||||
window.location.href = '/';
|
window.location.href = '/' + this.props.teamName + '/channels/town-square';
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
function emailLoginFailure(err) {
|
function emailLoginFailure(err) {
|
||||||
if (err.message === 'Login failed because email address has not been verified') {
|
if (err.message === 'Login failed because email address has not been verified') {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export default class TeamSignupPasswordPage extends React.Component {
|
|||||||
props.state.wizard = 'finished';
|
props.state.wizard = 'finished';
|
||||||
props.updateParent(props.state, true);
|
props.updateParent(props.state, true);
|
||||||
|
|
||||||
window.location.href = '/';
|
window.location.href = '/' + teamSignup.team.name + '/channels/town-square';
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
function loginFail(err) {
|
function loginFail(err) {
|
||||||
if (err.message === 'Login failed because email address has not been verified') {
|
if (err.message === 'Login failed because email address has not been verified') {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user