Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a5a02bbd
authored
Jul 29, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
c2fdcb6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
Application/Home/Controller/IndexController.class.php
dist/js/person/login.js
Application/Home/Controller/IndexController.class.php
View file @
a5a02bbd
...
...
@@ -11,7 +11,7 @@ class IndexController extends BaseController
public
function
_initialize
()
{
parent
::
_initialize
();
if
(
!
cookie
(
'token'
)
&&
ACTION_NAME
!=
'login'
&&
ACTION_NAME
!=
'register'
&&
ACTION_NAME
!=
'index'
&&
ACTION_NAME
!=
'indexsearch'
)
{
if
(
!
cookie
(
'token'
)
&&
ACTION_NAME
!=
'login'
&&
ACTION_NAME
!=
'register'
&&
ACTION_NAME
!=
'index'
&&
ACTION_NAME
!=
'indexsearch'
&&
ACTION_NAME
!=
'forget'
)
{
$this
->
redirect
(
'/login'
);
}
}
...
...
dist/js/person/login.js
View file @
a5a02bbd
...
...
@@ -107,6 +107,8 @@
if
(
!
$mobile
.
val
())
{
$mobile
.
parent
(
'.input-wrap'
).
addClass
(
'error'
);
$
(
".error-text"
).
show
().
find
(
"span"
).
text
(
'请填写手机号'
);
return
false
;
...
...
@@ -115,6 +117,8 @@
if
(
!
$password
.
val
()
&&
type
===
1
)
{
$password
.
parent
().
parent
(
'.input-wrap'
).
addClass
(
'error'
);
$
(
".error-text"
).
show
().
find
(
"span"
).
text
(
'请填写密码'
);
return
false
;
...
...
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