Skip to content

Commit

Permalink
Fixed login mode change on registration page visit #831 (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
dot5enko authored and svk31 committed Dec 15, 2017
1 parent 0992baf commit c303100
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions app/components/Account/CreateAccountPassword.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ class CreateAccountPassword extends React.Component {
}

componentWillMount() {
SettingsActions.changeSetting({
setting: "passwordLogin",
value: true
});
if (!WalletDb.getWallet()) {
SettingsActions.changeSetting({
setting: "passwordLogin",
value: true
});
}
}

componentDidMount() {
Expand Down Expand Up @@ -95,6 +97,12 @@ class CreateAccountPassword extends React.Component {
}

_unlockAccount(name, password) {

SettingsActions.changeSetting({
setting: "passwordLogin",
value: true
});

WalletDb.validatePassword(password, true, name);
WalletUnlockActions.checkLock.defer();
}
Expand Down

0 comments on commit c303100

Please sign in to comment.