Skip to content

register view while logged in #328

@najibfahs

Description

@najibfahs

Hello, first time user of Flask-user.
While logged in, I don't expect to have access to the registration view. I but I do. I don't believe it is supposed to work this way.
Just like the log in view is not accessible while logged in, access to the register view must be denied.
So I looked at the code in the login_view function and the following snippet is what prevents access:

Immediately redirect already logged in users

if self.call_or_get(current_user.is_authenticated) and self.USER_AUTO_LOGIN_AT_LOGIN:
return redirect(safe_next_url)

But I dont see this under the register_view.

Or am I missing something?
thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions