-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remplace la vue de login par la LoginView de Django (#6273)
* Refactorise les tests du login * réorganise les tests existants * ajoute un test pour vérifier l'erreur obtenue pour un utilisateur inactif * corrige un bug dans la vue pour passer le test * Refactorise le login * utilise la LoginView de Django * change le backend standard pour afficher une erreur spécifique pour les comptes inactifs (nécessaire en utilisant la LoginView de Django) * simplifie en fusionnant les erreurs pour mauvais nom d'utilisateur ou mot de passe * conserve le comportement de redirection originel * ne teste plus le formulaire seul (tout est couvert par les tests de la vue) * corrige des tests annexes qui ne testaient pas la bonne chose * Retire un générateur de tokens désormais inutile * Ajoute les tests pour le cookie et l'enregistrement de l'IP * Corrections * Change le message d'erreur pour les comptes inactifs * Ajoute une méthode is_banned pour les profils * Corrige la redirection au login
- Loading branch information
Showing
9 changed files
with
279 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.