\n" +
79 | "\n" +
80 | "
\n" +
81 | "\n" +
82 | "
\n" +
83 | " \n" +
84 | " \n" +
85 | " \n" +
86 | " \n" +
87 | " \n" +
88 | " \n" +
89 | " \n" +
90 | " \n" +
91 | " \n" +
92 | " \n" +
93 | " | \n" +
94 | " \n" +
95 | " Confirm your email\n" +
96 | " | \n" +
97 | " \n" +
98 | " \n" +
99 | " \n" +
100 | " | \n" +
101 | " \n" +
102 | " \n" +
103 | " \n" +
104 | " | \n" +
105 | "
\n" +
106 | "
\n" +
107 | "
\n" +
108 | " \n" +
109 | " | \n" +
110 | " \n" +
111 | " \n" +
112 | " \n" +
113 | " \n" +
114 | " | \n" +
115 | " \n" +
116 | " \n" +
117 | " \n" +
118 | " | \n" +
119 | " | \n" +
120 | "
\n" +
121 | "
\n" +
122 | "\n" +
123 | "\n" +
124 | "\n" +
125 | "
\n" +
126 | " \n" +
127 | "
| \n" +
128 | "
\n" +
129 | " \n" +
130 | "
| \n" +
131 | " \n" +
132 | " \n" +
133 | " Hi " + name + ", Thank you for registering. Please click on the below link to activate your account: Activate Now \n Link will expire in 15 minutes. See you soon " +
134 | " \n" +
135 | " | \n" +
136 | "
| \n" +
137 | "
\n" +
138 | " \n" +
139 | "
| \n" +
140 | "
\n" +
141 | "
\n" +
142 | "\n" +
143 | "
";
144 | }
145 | }
146 |
--------------------------------------------------------------------------------
/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.application.name=spring-auth-ver
2 | server.port=8090
3 |
4 | #For PostreSql database
5 | #spring.datasource.url=jdbc:postgresql://localhost:5432/registration
6 | #spring.jpa.hibernate.ddl-auto=create-drop
7 | #spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
8 | #spring.jpa.show-sql=true
9 |
10 | #For h2
11 | spring.h2.console.enabled=true
12 | spring.h2.console.path=/h2
13 | spring.h2.console.settings.trace=false
14 | spring.h2.console.settings.web-allow-others=false
15 |
16 | spring.datasource.url=jdbc:h2:mem:springAuth
17 | spring.datasource.driverClassName=org.h2.Driver
18 | spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
19 | spring.jpa.hibernate.ddl-auto=update
20 |
21 | #For mailing service
22 | spring.mail.host=localhost
23 | spring.mail.port=1025
24 | spring.mail.username=root
25 | spring.mail.password=admin
26 |
27 | spring.mail.properties.mail.smtp.ssl.trust=*
28 | spring.mail.properties.mail.smtp.auth=true
29 | spring.mail.properties.mail.smtp.starttls.enable=true
30 | spring.mail.properties.mail.smtp.connectiontimeout=5000
31 | spring.mail.properties.mail.smtp.timeout=3000
32 | spring.mail.properties.mail.smtp.writetimeout=5000
33 |
34 |
35 |
36 |
37 | spring.security.user.name=admin
38 | spring.security.user.password=root
--------------------------------------------------------------------------------
/src/test/java/com/spring/verification/springbackendverification/SpringBackendVerificationApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.spring.verification.springbackendverification;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class SpringBackendVerificationApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------