Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-smf-user
Commits
f178087f
Commit
f178087f
authored
2 years ago
by
sarojsingh2021
Browse files
Options
Download
Plain Diff
resolve merge conflict
parents
35128dae
5b8d61f8
master
delete-user
delete-user-fix
institute-district
1 merge request
!3
Delete user
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/main/java/com/tarento/retail/config/JwtTokenUtil.java
+1
-1
src/main/java/com/tarento/retail/config/JwtTokenUtil.java
src/main/java/com/tarento/retail/service/impl/UserServiceImpl.java
+1
-3
...java/com/tarento/retail/service/impl/UserServiceImpl.java
src/main/resources/application.properties
+2
-3
src/main/resources/application.properties
src/main/resources/otp_template.vm
+2
-2
src/main/resources/otp_template.vm
with
6 additions
and
9 deletions
+6
-9
src/main/java/com/tarento/retail/config/JwtTokenUtil.java
+
1
−
1
View file @
f178087f
...
...
@@ -75,7 +75,7 @@ public class JwtTokenUtil implements Serializable {
claims
.
put
(
CLAIMS_KEY
,
Arrays
.
asList
(
new
SimpleGrantedAuthority
(
JWT_GRANTED_AUTHORITY
)));
return
Jwts
.
builder
().
setClaims
(
claims
).
setIssuer
(
JWT_ISSUER
).
setIssuedAt
(
new
Date
(
System
.
currentTimeMillis
()))
.
setExpiration
(
new
Date
(
System
.
currentTimeMillis
()
+
appConfig
.
getJwtValidity
()
*
60
*
1000
))
.
setExpiration
(
new
Date
(
System
.
currentTimeMillis
()
+
appConfig
.
getJwtValidity
()
*
60
*
1000
0
))
.
signWith
(
SignatureAlgorithm
.
HS256
,
SIGNING_KEY
).
compact
();
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/tarento/retail/service/impl/UserServiceImpl.java
+
1
−
3
View file @
f178087f
...
...
@@ -568,8 +568,7 @@ public class UserServiceImpl implements UserDetailsService, UserService {
@Override
public
Boolean
validateUserOTP
(
String
username
,
String
otp
)
{
return
Boolean
.
TRUE
;
//remove when commit the code
/*
try
{
LoginAuthentication
loginAuth
=
Cache
.
getUserAuthData
(
username
);
if
(
loginAuth
!=
null
&&
loginAuth
.
getOtpExpiryDate
()
>
DateUtil
.
getCurrentTimestamp
()
...
...
@@ -580,7 +579,6 @@ public class UserServiceImpl implements UserDetailsService, UserService {
LOGGER
.
error
(
String
.
format
(
Constants
.
EXCEPTION_METHOD
,
"validateUserOTP"
,
e
.
getMessage
()));
}
return
Boolean
.
FALSE
;
*/
}
@Override
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
+
2
−
3
View file @
f178087f
...
...
@@ -31,10 +31,9 @@ mail.smtp.password=BFlcJ5K2pekNcgLG8Joo9y78JL5DyO0gIhztJpeRm93d
mail.smtp.email
=
idc-eagle@tarento.com
### Expiry Timings ###
otp.validity.mins
=
5
jwt.validity.mins
=
432
0
otp.validity.mins
=
10080
jwt.validity.mins
=
1008
0
#springdoc.swagger-ui.path=/user-management/swagger/swagger-ui.html
#springdoc.api-docs.path=/user-management/swagger/api-docs
spring.mvc.pathmatch.matching-strategy
=
ant-path-matcher
This diff is collapsed.
Click to expand it.
src/main/resources/otp_template.vm
+
2
−
2
View file @
f178087f
...
...
@@ -295,13 +295,13 @@
<tr>
<td
class=
"free-text PT25"
>
#
if
($
otp
)
$
otp
is y
our UP SMF
L
ogin OTP
. This
is valid for
the next
5 mins.
Y
our UP SMF
l
ogin OTP
is
$
otp
. It
is valid for 5 mins.
#
end
</td>
</tr>
<tr>
<td
class=
"free-text PT25"
>
Thank you
!
Thank you
.
</td>
</tr>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets