Skip to content

Redirect users away from /login, if they are already logged in #4977

@n0emis

Description

@n0emis

Environment

  • Python version: 3.8.5
  • NetBox version: 2.8.9

Proposed Functionality

When a already logged-in user access the /login url, they should be redirected to home or to the page from the parameter next.

I created a simple PoC: n0emis@061549b

Use Case

This would be especially usefull when using a Remote-Auth-Backend like django.contrib.auth.middleware.PersistentRemoteUserMiddleware, where the HTTP-Header only get's send when accessing the login-page.

Database Changes

No database-changes required

External Dependencies

No new external Dependencies required

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions