Centralized demo account logic in the password auth service. ref #167
This commit is contained in:
@@ -152,6 +152,11 @@ class PasswordTooWeakGenericError : public GenericError
|
||||
std::string getMessage() const override { return "Password too weak"; }
|
||||
};
|
||||
|
||||
class PasswordMustMatchLoginNameGenericError : public GenericError
|
||||
{
|
||||
std::string getMessage() const override { return "Password must match login name"; }
|
||||
};
|
||||
|
||||
class DemoUserCannotChangePasswordGenericError : public GenericError
|
||||
{
|
||||
std::string getMessage() const override { return "Demo user cannot change its password"; }
|
||||
|
||||
Reference in New Issue
Block a user