Merge pull request #537 from mattermost/mm-2091

HOTFIX for 0.7.0 - MM-2091 Fix bad user being set on team creation causing Manage Team modal to not work.
Этот коммит содержится в:
Christopher Speller
2015-09-02 08:19:40 -04:00
родитель 8d6c354811 57692bcb6d
Коммит 57051a6c3f

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

@@ -41,7 +41,7 @@ module.exports = React.createClass({
client.loginByEmail(teamSignup.team.name, teamSignup.team.email, teamSignup.user.password,
function(data) {
UserStore.setLastEmail(teamSignup.team.email);
UserStore.setCurrentUser(teamSignup.user);
UserStore.setCurrentUser(data);
if (this.props.hash > 0) {
BrowserStore.setGlobalItem(this.props.hash, JSON.stringify({wizard: 'finished'}));
}