**PLEASE NOTE!! IF YOU CREATE THE DATABASE LOCALLY THEN YOU NEED TO FOLLOW THESE STEPS: When you tun the system for the first time after having created the databse you need to hash the existing passwords for the dummy data! This is how you do it:
- In the LoginControllere in the login-method you need to activate the following method: // loginService.hashExistingPasswords();
- Start the application, go the index page, choose a profile to go to the login page. DO NOT LOGIN
- close the application. Remove // loginService.hashExistingPasswords(); frem the login method
- Run the application again. The existing passwords should now be hashed and you can continue to login.
KNOWN ISUSES:
- If you forget to hash the existing passworsd the system will crash once you enter the login-page.
- If you forget to remove the method in login AFTER having run the application for the first time the system will keep hashing the passwords, which will make login impossible.