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
d6f41d8d
Commit
d6f41d8d
authored
May 01, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error 404 on reset password (Fix #1342)
parent
fb8b6310
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
admin.py
cps/admin.py
+2
-2
book_edit.html
cps/templates/book_edit.html
+1
-1
No files found.
cps/admin.py
View file @
d6f41d8d
...
@@ -933,8 +933,8 @@ def edit_user(user_id):
...
@@ -933,8 +933,8 @@ def edit_user(user_id):
@
login_required
@
login_required
@
admin_required
@
admin_required
def
reset_user_password
(
user_id
):
def
reset_user_password
(
user_id
):
if
not
config
.
config_public_reg
:
#
if not config.config_public_reg:
abort
(
404
)
#
abort(404)
if
current_user
is
not
None
and
current_user
.
is_authenticated
:
if
current_user
is
not
None
and
current_user
.
is_authenticated
:
ret
,
message
=
reset_password
(
user_id
)
ret
,
message
=
reset_password
(
user_id
)
if
ret
==
1
:
if
ret
==
1
:
...
...
cps/templates/book_edit.html
View file @
d6f41d8d
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
</div>
</div>
<a
href=
"#"
id=
"get_meta"
class=
"btn btn-default"
data-toggle=
"modal"
data-target=
"#metaModal"
>
{{_('Fetch Metadata')}}
</a>
<a
href=
"#"
id=
"get_meta"
class=
"btn btn-default"
data-toggle=
"modal"
data-target=
"#metaModal"
>
{{_('Fetch Metadata')}}
</a>
<button
type=
"submit"
id=
"submit"
class=
"btn btn-default"
>
{{_('Save')}}
</button>
<button
type=
"submit"
id=
"submit"
class=
"btn btn-default"
>
{{_('Save')}}
</button>
<a
href=
"{{ url_for('web.show_book', book_id=book.id) }}"
class=
"btn btn-default"
>
{{_('Cancel')}}
</a>
<a
href=
"{{ url_for('web.show_book', book_id=book.id) }}"
id=
"edit_cancel"
class=
"btn btn-default"
>
{{_('Cancel')}}
</a>
</div>
</div>
</form>
</form>
...
...
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