Commit 8545ae0d by Vuk Lazovic

login/logout/anonymous user...

parent e5e07021
...@@ -4,9 +4,12 @@ ...@@ -4,9 +4,12 @@
<option name="autoReloadType" value="ALL" /> <option name="autoReloadType" value="ALL" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="6e82c7f1-3949-40e2-bc26-7eb50b36f993" name="Default Changelist" comment=""> <list default="true" id="6e82c7f1-3949-40e2-bc26-7eb50b36f993" name="Default Changelist" comment="dodata ulogovana verzija">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/templates/dodaj.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/dodaj.html" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/main/java/app/config/Bezbednost.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/app/config/Bezbednost.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/app/usluga/web/MainKontroler.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/app/usluga/web/MainKontroler.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/templates/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/index.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/templates/loggedin.html" beforeDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -191,6 +194,9 @@ ...@@ -191,6 +194,9 @@
<workItem from="1663427050863" duration="1923000" /> <workItem from="1663427050863" duration="1923000" />
<workItem from="1663500169914" duration="6177000" /> <workItem from="1663500169914" duration="6177000" />
<workItem from="1663512751550" duration="4807000" /> <workItem from="1663512751550" duration="4807000" />
<workItem from="1663587110231" duration="665000" />
<workItem from="1663587883995" duration="11000" />
<workItem from="1663589644471" duration="979000" />
</task> </task>
<task id="LOCAL-00001" summary="dodata ulogovana verzija"> <task id="LOCAL-00001" summary="dodata ulogovana verzija">
<created>1663501497955</created> <created>1663501497955</created>
......
...@@ -64,14 +64,14 @@ public class Bezbednost extends WebSecurityConfigurerAdapter { ...@@ -64,14 +64,14 @@ public class Bezbednost extends WebSecurityConfigurerAdapter {
.and() .and()
.formLogin() .formLogin()
.loginPage("/login") .loginPage("/login")
.defaultSuccessUrl("/loggedin", true) .defaultSuccessUrl("/", true)
.permitAll() .permitAll()
.and() .and()
.logout() .logout()
.invalidateHttpSession(true) .invalidateHttpSession(true)
.clearAuthentication(true) .clearAuthentication(true)
.logoutRequestMatcher(new AntPathRequestMatcher("/logout")) .logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
.logoutSuccessUrl("/login?logout") .logoutSuccessUrl("/")
.permitAll(); .permitAll();
} }
......
...@@ -25,10 +25,6 @@ public class MainKontroler { ...@@ -25,10 +25,6 @@ public class MainKontroler {
return "index"; return "index";
} }
@GetMapping("/loggedin")
public String prikaziLoggedin() {
return "loggedin";
}
@GetMapping("/dodaj") @GetMapping("/dodaj")
public String prikazidodaj() { public String prikazidodaj() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment