I have an application with springboot and javafx where i have an admin page which is accessible only with a password, which is generated by the server and print to console. Before i had a implemented this using some static String attribute in the Main file of the server, but due to restrictions of the assignment i got, i got to implement this somehow another way. Maybe injection? idk but i want help witht this
The way how it should is that the client fills in a password in the front end, then the client sends a postrequest for confirmation.
IN the photos you see the kind of files i got and what i have so far tried to implement