Skip to content

Admin: Remplacer la page de connexion de l'admin#5727

Merged
tonial merged 3 commits intomasterfrom
alaurent/staff_login
Mar 7, 2025
Merged

Admin: Remplacer la page de connexion de l'admin#5727
tonial merged 3 commits intomasterfrom
alaurent/staff_login

Conversation

@tonial
Copy link
Copy Markdown
Contributor

@tonial tonial commented Mar 6, 2025

🤔 Pourquoi ?

Pour nous permettre d'ajouter la vérification OTP plus proprement, et de manière à pouvoir le généraliser à d'autres utilisateurs un jour

🍰 Comment ?

Décrivez en quelques mots la solution retenue et mise en oeuvre, les difficultés ou problèmes rencontrés. Attirez l'attention sur les décisions d'architecture ou de conception importantes.

🚨 À vérifier

  • Mettre à jour le CHANGELOG_breaking_changes.md ?
  • Ajouter l'étiquette « Bug » ?

🏝️ Comment tester ?

Les instructions pour reproduire le problème, les profils de test, le parcours spécifique à utiliser, etc. Si vous disposez d'une recette jetable, mettre l'URL pour tester dans cette partie.

💻 Captures d'écran

@tonial tonial added the modifié Modifié dans le changelog. label Mar 6, 2025
@tonial tonial requested a review from leo-naeka March 6, 2025 09:25
@tonial tonial self-assigned this Mar 6, 2025
Copy link
Copy Markdown
Contributor

@leo-naeka leo-naeka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il faudra reword les commit messages :

  • login: Clean usuned contextlogin: Clean unused context
  • login: Replace amdin login viewlogin: Replace admin login view

Comment thread itou/utils/perms/middleware.py
@tonial tonial force-pushed the alaurent/staff_login branch from 9d56016 to aba5536 Compare March 6, 2025 09:41
Copy link
Copy Markdown
Contributor

@EwenKorr EwenKorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je trouve que c'est une bonne idée !

tonial added 3 commits March 7, 2025 11:01
This will allow us to use it instead of the admin login view
We will then be able to add the OTP check view outside of the admin
Using the perms middleware.
We can now go to a specific admin page (eg /admin/users/user/PK) and be
redirected to a login page that will redirect us back to the correct
page.
Before this commit, when accessing such page, we would have the generic
login page that does not have a "staff login" link
@tonial tonial force-pushed the alaurent/staff_login branch from cf40b8f to e7671f2 Compare March 7, 2025 10:01
Copy link
Copy Markdown
Contributor

@celine-m-s celine-m-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bonne idée. :)

@tonial tonial added this pull request to the merge queue Mar 7, 2025
Merged via the queue into master with commit e436164 Mar 7, 2025
@tonial tonial deleted the alaurent/staff_login branch March 7, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants