Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac-quanmin
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
HTML5-李恒逸
sunac-quanmin
Commits
88dcf85f
Commit
88dcf85f
authored
Jun 13, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证码更新
parent
a7b90a9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
index.php
html/application/controllers/admin/index.php
+1
-0
login.php
html/application/views/admin/login.php
+3
-2
No files found.
html/application/controllers/admin/index.php
View file @
88dcf85f
...
...
@@ -130,6 +130,7 @@ class Index extends CI_Controller{
$captcha_type
=
'small'
;
$captcha
=
generate_captcha
(
$captcha_type
);
//var_dump($captcha);die;
//将校验码存到session中
$this
->
session
->
set_userdata
(
'captcha'
,
$captcha
[
'word'
]);
$this
->
data
[
'image'
]
=
$captcha
[
'image'
];
...
...
html/application/views/admin/login.php
View file @
88dcf85f
...
...
@@ -67,7 +67,8 @@
</div>
<div class="
form
-
group
">
<input type="
text
" name="
captcha
" id="
captcha
" class="
input
-
sm
input
-
small
" onkeypress="
EnterPress
()
">
<?php echo isset(
$image
)?
$image
:'';?>
<?php echo isset(
$image
)?
$image
:'no';?>
</div>
<div class="
form
-
actions
text
-
center
">
<input type="
checkbox
" checked="
true
" name="
chkRememberUsername
" class="
text
-
left
" id="
rmbUser
">记住用户名
...
...
@@ -148,7 +149,7 @@
saveUserInfo
();
$
(
'.login-form'
).
submit
();
})
getCaptcha
();
$
(
"form img"
).
click
(
function
(){
getCaptcha
();
});
...
...
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