Permalink
Browse files

delete cached credentials on AUTH_FAILED

  • Loading branch information...
pulpofred
pulpofred committed Nov 5, 2015
1 parent a465df4 commit 51498bf9c0488bb59cb58a45f060d4b29f905409
Showing with 4 additions and 0 deletions.
  1. +4 −0 fruho/main.tcl
@@ -2922,6 +2922,10 @@ proc ffread-loop {} {
{^Initialization Sequence Completed} {
}
{AUTH: Received control message: AUTH_FAILED} {
set profile [current-profile]
# on AUTH_FAILED delete cached auth credentials for this profile
dict-set-trim ::model::Profiles $profile cache_custom_auth_user ""
dict-set-trim ::model::Profiles $profile cache_custom_auth_pass ""
$::model::Chan_openvpn_fail <- "AUTH_FAILED Wrong username/password"
}
}

0 comments on commit 51498bf

Please sign in to comment.