Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sentinel
Commits
be7beeb4
Commit
be7beeb4
authored
Nov 24, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxx
parent
af74dcae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
1 deletion
+1
-1
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+1
-1
first_pass_en_US.txt
src/main/resources/doc/first_pass_en_US.txt
+0
-0
first_pass_zh_CN.txt
src/main/resources/doc/first_pass_zh_CN.txt
+0
-0
No files found.
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
be7beeb4
...
@@ -119,7 +119,7 @@ public class AdminFirstController {
...
@@ -119,7 +119,7 @@ public class AdminFirstController {
locale
=
new
Locale
(
"en"
,
"US"
);
locale
=
new
Locale
(
"en"
,
"US"
);
}
}
String
subject
=
messages
.
get
(
"email.getPassword.subject"
,
locale
);
String
subject
=
messages
.
get
(
"email.getPassword.subject"
,
locale
);
String
content
=
Common
.
getStringAsStream
(
"classpath:/doc/
"
+
member
.
getLang
()
+
"/first_pass
.txt"
);
String
content
=
Common
.
getStringAsStream
(
"classpath:/doc/
first_pass_"
+
locale
.
getLanguage
().
toLowerCase
()
+
"_"
+
locale
.
getCountry
().
toUpperCase
()
+
"
.txt"
);
MessageFormat
.
format
(
content
,
member
.
getUsername
(),
memberFilm
.
getId
());
MessageFormat
.
format
(
content
,
member
.
getUsername
(),
memberFilm
.
getId
());
emailService
.
send
(
subject
,
content
,
member
.
getEmail
());
emailService
.
send
(
subject
,
content
,
member
.
getEmail
());
return
Rjx
.
jsonOk
();
return
Rjx
.
jsonOk
();
...
...
src/main/resources/doc/
en/first_pass
.txt
→
src/main/resources/doc/
first_pass_en_US
.txt
View file @
be7beeb4
File moved
src/main/resources/doc/
zh/first_pass
.txt
→
src/main/resources/doc/
first_pass_zh_CN
.txt
View file @
be7beeb4
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment