Skip to content
Snippets Groups Projects
Commit aba2121e authored by Gabriel Copat's avatar Gabriel Copat
Browse files

Added some comments and removed redundant database columns

parent 739f4c54
No related branches found
No related tags found
1 merge request!37Resolve "As a repeat trail visitor , I want to be able to create an account so I can save and review my progress."
......@@ -17,6 +17,7 @@ import javax.sql.DataSource;
@Configuration
@EnableWebSecurity
public class SecurityConfiguration {
/* Configures the longin features and tracks logged on users on the page */
@Bean
......@@ -36,6 +37,7 @@ public class SecurityConfiguration {
}
@Bean
public PasswordEncoder passwordEncoder(){
/* Nothing here yet, this just saves passwords in plaintext. TODO password encryption */
return NoOpPasswordEncoder.getInstance();
}
......
......@@ -69,7 +69,6 @@ public class UserController {
System.out.println(user.getUsername());
mav.addObject("user", userRepository.findUserByName("Admin"));
mav.addAllObjects(getPackInfo("Admin", 1).getModelMap());
return mav;
}
......@@ -82,7 +81,6 @@ public class UserController {
mav.addObject("user", userRepository.findUserByName("Admin"));
mav.addObject("packs", allPacks);
mav.addAllObjects(getPackInfo(username, 1).getModelMap());
return mav;
}
......
......@@ -37,10 +37,10 @@ create table if not exists locations
CREATE TABLE IF NOT EXISTS users (
username varchar(30) primary key NOT NULL,
id bigint auto_increment unique,
email varchar(128),
password varchar(30) NOT NULL,
enabled boolean default true,
roles varchar(128)
enabled boolean default true
);
CREATE TABLE IF NOT EXISTS authorities (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment