-
Giorgos Kazelidis authored
- Removed the last_login field from the User model, inserted it to the Registry model (a User instance retains now one last_login value for each Platform instance that is associated with it via the corresponding Registry instance) and modified the emission arguments of the user_logged_in signal for logged-in User instances - Constrained the email fields of the User/Admin models and user profile edit/recovery forms to a maximum length of 100 characters - Constrained the username and password fields of the login form to a minimum length of 8 characters - Omitted the redundant ECE-NTUA platform from the test Platform instances that are used to populate the usermerge_platform table of usermergeDB - Omitted the username format check {piYYbSSS with SSS <> 000} of the login form for the Novice and Grader platforms as there can exist valid usernames for them that are not in the aforementioned format - Enabled the Django admin site, registered all the application models to it and provided instructions on accessing it - Defined the User_login_required() and Admin_login_required() decorators and used them for enhanced access control in the majority of views - Reduced the database queries made in recover_user_profile() view to enhance its performance - Added the production_logs folder to the .gitignore file
95a43695