Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
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
captainwong
douban-api-proxy
Commits
0b7c679d
Commit
0b7c679d
authored
Mar 27, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed test email message (fix #657)
parent
0b97bbf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
admin.py
cps/admin.py
+2
-3
No files found.
cps/admin.py
View file @
0b7c679d
...
@@ -1153,7 +1153,6 @@ def edit_mailsettings():
...
@@ -1153,7 +1153,6 @@ def edit_mailsettings():
@
admin_required
@
admin_required
def
update_mailsettings
():
def
update_mailsettings
():
to_save
=
request
.
form
.
to_dict
()
to_save
=
request
.
form
.
to_dict
()
# log.debug("update_mailsettings %r", to_save)
_config_string
(
to_save
,
"mail_server"
)
_config_string
(
to_save
,
"mail_server"
)
_config_int
(
to_save
,
"mail_port"
)
_config_int
(
to_save
,
"mail_port"
)
...
@@ -1173,8 +1172,8 @@ def update_mailsettings():
...
@@ -1173,8 +1172,8 @@ def update_mailsettings():
if
current_user
.
email
:
if
current_user
.
email
:
result
=
send_test_mail
(
current_user
.
email
,
current_user
.
nickname
)
result
=
send_test_mail
(
current_user
.
email
,
current_user
.
nickname
)
if
result
is
None
:
if
result
is
None
:
flash
(
_
(
u"Test e-mail
successfully send to
%(kindlemail)
s"
,
kindl
email
=
current_user
.
email
),
flash
(
_
(
u"Test e-mail
queued for sending to
%(email)
s, please check Tasks for result"
,
email
=
current_user
.
email
),
category
=
"
success
"
)
category
=
"
info
"
)
else
:
else
:
flash
(
_
(
u"There was an error sending the Test e-mail:
%(res)
s"
,
res
=
result
),
category
=
"error"
)
flash
(
_
(
u"There was an error sending the Test e-mail:
%(res)
s"
,
res
=
result
),
category
=
"error"
)
else
:
else
:
...
...
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