Skip to content

Commit

Permalink
Merge pull request SpecterOps#305 from Crypt0-M3lon/patch-1
Browse files Browse the repository at this point in the history
Fix URL check breaking login process in case of success
  • Loading branch information
rvazarkar authored Feb 24, 2020
2 parents e96ec6f + 933a1c5 commit f5fdf3b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/Float/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,14 @@ const Login = () => {

session
.run('MATCH (n) RETURN n LIMIT 1')
.then(result => {})
.then(result => {
icon.removeClass();
icon.addClass(
'fa fa-check-circle green-icon-color form-control-feedback'
);
setLoginEnabled(true);
setUrl(tempUrl);
})
.catch(error => {
if (error.message.includes('WebSocket connection failure')) {
icon.removeClass();
Expand All @@ -253,7 +260,8 @@ const Login = () => {
setLoginEnabled(true);
setUrl(tempUrl);
}

})
.finally(() => {
session.close();
driver.close();
});
Expand Down

0 comments on commit f5fdf3b

Please sign in to comment.