diff options
Diffstat (limited to 'common/rfb/SSecurityPlain.cxx')
-rw-r--r-- | common/rfb/SSecurityPlain.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/SSecurityPlain.cxx b/common/rfb/SSecurityPlain.cxx index 73a21335..e009de39 100644 --- a/common/rfb/SSecurityPlain.cxx +++ b/common/rfb/SSecurityPlain.cxx @@ -87,7 +87,7 @@ bool SSecurityPlain::processMsg() char password[1024]; if (!valid) - throw AuthFailureException("No password validator configured"); + throw Exception("No password validator configured"); if (state == 0) { if (!is->hasData(8)) @@ -114,7 +114,7 @@ bool SSecurityPlain::processMsg() username[ulen] = 0; plen = 0; if (!valid->validate(sc, username, password)) - throw AuthFailureException("invalid password or username"); + throw AuthFailureException("Authentication failed"); } return true; |