Skip to content

Commit

Permalink
Fix login screen db presence check
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Jan 23, 2018
1 parent eeb2b16 commit 896f7b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Float/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class Login extends Component {
driver.close();
};
driver.onError = function(error){
if (error.message.includes("authentication failure")){
if (error.code.includes("Unauthorized")){
icon.removeClass();
icon.addClass("fa fa-check-circle green-icon-color form-control-feedback");
this.setState({loginEnabled: true, url: url});
Expand All @@ -105,7 +105,6 @@ export default class Login extends Component {
session.close();
driver.close();
}.bind(this);
session.run("return 1");
}

checkDBCreds(){
Expand Down

0 comments on commit 896f7b2

Please sign in to comment.