Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
red-group-test
red-ci-cd
Commits
cc34f8a5
Commit
cc34f8a5
authored
Sep 20, 2019
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug on sending mail at reset-password admin level
parent
21b10756
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
app/applicationlayer/management/account/views.py
app/applicationlayer/management/account/views.py
+4
-2
app/helper/email_service/sender.py
app/helper/email_service/sender.py
+1
-1
No files found.
app/applicationlayer/management/account/views.py
View file @
cc34f8a5
...
...
@@ -182,9 +182,11 @@ class UserViewSet(viewsets.ModelViewSet):
@
decorators
.
error_safe
@
rms
.
user_create
@
transaction
.
atomic
def
ResetPassword
(
self
,
request
,
pk
=
None
):
def
ResetPassword
(
self
,
request
,
code
=
None
):
existingUser
=
User
.
objects
.
filter
(
id
=
pk
)
.
first
()
existingUser
=
User
.
objects
.
filter
(
code
=
str
(
code
))
pk
=
existingUser
.
values
()
.
first
()[
'id'
]
existingUser
=
existingUser
.
first
()
if
existingUser
:
...
...
app/helper/email_service/sender.py
View file @
cc34f8a5
...
...
@@ -138,7 +138,7 @@ def admin_changepassword(args):
subject
=
'OB RMS: Password Changed!'
,
message
=
''
,
from_email
=
settings
.
EMAIL_DEFAULT_SENDER
,
recipient_list
=
[
recipient
,],
recipient_list
=
[
recipient
,
admin
,
],
html_message
=
FC
)
...
...
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