Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fish
Overview
Overview
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
rongjun
fish
Commits
fb3dee0f
Commit
fb3dee0f
authored
Oct 08, 2018
by
rongjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
f795dac9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
ManageMiddleware.py
apps/manage/middleware/ManageMiddleware.py
+1
-1
settings.py
fish/settings.py
+1
-0
login.html
templates/manage/login.html
+0
-3
No files found.
apps/manage/middleware/ManageMiddleware.py
View file @
fb3dee0f
# coding=utf8
import
json
from
django.
core.urlresolver
s
import
reverse
from
django.
url
s
import
reverse
from
django.http
import
HttpResponse
from
django.http.response
import
HttpResponseRedirect
from
apps.manage.views
import
login
,
first_login
...
...
fish/settings.py
View file @
fb3dee0f
...
...
@@ -57,6 +57,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.middleware.clickjacking.XFrameOptionsMiddleware'
,
'apps.manage.middleware.ManageMiddleware.ManageMiddleware'
,
]
ROOT_URLCONF
=
'fish.urls'
...
...
templates/manage/login.html
View file @
fb3dee0f
...
...
@@ -221,9 +221,6 @@
<label
class=
"label-password"
></label>
<input
type=
"password"
name=
"password"
maxlength=
"32"
placeholder=
"密码"
>
</div>
<div
class=
"form-group captcha-wrap"
>
{{ form }}
</div>
<div
class=
"form-group no-border"
>
<label
class=
"fl"
>
记住我
</label>
<input
type=
"checkbox"
class=
"fl"
>
...
...
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