Merge pull request #806 from mattermost/fixing-redirect

redirect to team after login
Этот коммит содержится в:
Harrison Healey
2015-09-25 12:01:09 -04:00
родитель e743ad483a e05c6ed6d1
Коммит 4ef5981e6c
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -84,7 +84,7 @@ export default class SignupUserComplete extends React.Component {
if (this.props.hash > 0) {
BrowserStore.setGlobalItem(this.props.hash, JSON.stringify({wizard: 'finished'}));
}
window.location.href = '/';
window.location.href = '/' + this.props.teamName + '/channels/town-square';
}.bind(this),
function emailLoginFailure(err) {
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.updateParent(props.state, true);
window.location.href = '/';
window.location.href = '/' + teamSignup.team.name + '/channels/town-square';
}.bind(this),
function loginFail(err) {
if (err.message === 'Login failed because email address has not been verified') {