diff --git a/src/dioptra/restapi/user/model.py b/src/dioptra/restapi/user/model.py index 964950a13..805284104 100644 --- a/src/dioptra/restapi/user/model.py +++ b/src/dioptra/restapi/user/model.py @@ -80,6 +80,18 @@ def update(self, changes: dict[str, Any]): return self + def is_authenticated(self) -> bool: + return True + + def is_active(self) -> bool: + return True + + def is_anonymous(self) -> bool: + return False + + def get_id(self) -> str: + return str(self.user_id) + class UserRegistrationForm(FlaskForm): """The user registration form.