File tree Expand file tree Collapse file tree
spring-security-login-and-registration/src/main/resources
spring-security-oauth/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ smtp.host=email-smtp.us-east-1.amazonaws.com
33smtp.port =465
44smtp.protocol =smtps
55smtp.username =AKIAJIKXZAQFFJDXI4VQ
6- smtp.password =
7- support.email =xxx777@gmail .com
6+ smtp.password =AjYQNjXVTalbpfRL37RYqyXEkyQAvmKFcUFQllfAsBLh
7+ support.email =eugen@baeldung .com
Original file line number Diff line number Diff line change @@ -63,4 +63,4 @@ auth.message.blocked=This ip is blocked for 24 hours
6363message.accountVerified =Your account verified successfully
6464message.resetPasswordSuc =Password reset successfully
6565message.resetYourPassword =Reset your password
66- message.resetPasswordEmail =We will send an email to reset your password
66+ message.resetPasswordEmail =You should receive an Password Reset Email shortly
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ protected WebApplicationContext createRootApplicationContext() {
3030 @ Override
3131 public void onStartup (ServletContext servletContext ) throws ServletException {
3232 super .onStartup (servletContext );
33+
34+ servletContext .addListener (new SessionListener ());
35+
3336 registerProxyFilter (servletContext , "oauth2ClientContextFilter" );
3437 }
3538
Original file line number Diff line number Diff line change 1+ package org .baeldung .config ;
2+
3+ import javax .servlet .http .HttpSessionEvent ;
4+ import javax .servlet .http .HttpSessionListener ;
5+
6+ public class SessionListener implements HttpSessionListener {
7+
8+ @ Override
9+ public void sessionCreated (HttpSessionEvent event ) {
10+ System .out .println ("==== Session is created ====" );
11+ event .getSession ().setMaxInactiveInterval (1 * 60 );
12+ }
13+
14+ @ Override
15+ public void sessionDestroyed (HttpSessionEvent event ) {
16+ System .out .println ("==== Session is destroyed ====" );
17+ }
18+ }
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <configuration >
2+
3+ <appender name =" STDOUT" class =" ch.qos.logback.core.ConsoleAppender" >
4+ <encoder >
5+ <pattern >web - %date [%thread] %-5level %logger{36} - %message%n
6+ </pattern >
7+ </encoder >
8+ </appender >
9+
10+ <logger name =" org.springframework" level =" WARN" />
11+ <logger name =" org.springframework.transaction" level =" WARN" />
12+
13+ <!-- in order to debug some marshalling issues, this needs to be TRACE -->
14+ <logger name =" org.springframework.web.servlet.mvc" level =" WARN" />
15+
16+ <root level =" INFO" >
17+ <appender-ref ref =" STDOUT" />
18+ </root >
19+
20+ </configuration >
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments