切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
李涵
6 years ago
提交
77e2694440968586d32ccea423f7a0aa4591831c
2 个父辈
cbba153a
4b64fe94
1 个管道 的构建
通过
耗费 2 秒
合并分支 'li' 到 'master'
赠送积分和角色管理 查看合并请求
!484
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
41 行增加
和
4 行删除
app/friendship/controller/FriendController.php
public/themes/simpleboot3/friendship/password_manager.html
app/friendship/controller/FriendController.php
查看文件 @
77e2694
...
...
@@ -170,18 +170,55 @@ class FriendController extends HomeBaseController
}
//密码管理验证码页面
public
function
passwordManager
()
{
public
function
passwordManager
()
{
return
$this
->
fetch
(
':password_manager'
);
}
//输入密码
public
function
enterPassword
()
{
public
function
enterPassword
()
{
return
$this
->
fetch
(
':enter_password'
);
}
//确认密码
public
function
surePassword
()
{
public
function
surePassword
()
{
return
$this
->
fetch
(
':sure_password'
);
}
public
function
pwd
()
{
$request
=
request
();
if
(
$request
->
isAjax
())
{
$integral_pwd
=
$request
->
param
(
'integral_pwd'
);
$step
=
$request
->
param
(
'step'
);
if
(
$step
==
'enter'
)
{
session
(
'user.pwd'
,
$integral_pwd
);
if
(
session
(
'user.pwd'
))
{
$this
->
success
(
''
,
url
(
'friendship/Friend/surePassword'
),
true
);
}
}
elseif
(
$step
==
'sure'
)
{
if
(
$integral_pwd
==
session
(
'user.pwd'
))
{
$data
=
[
'id'
=>
session
(
'user.id'
),
'integral_pwd'
=>
md5
(
$integral_pwd
)
];
if
(
Db
::
name
(
'user'
)
->
update
(
$data
))
{
session
(
'user.pwd'
,
null
);
$this
->
success
(
'修改成功'
,
url
(
'user/center/myBalance'
),
true
);
}
else
{
session
(
'user.pwd'
,
null
);
$this
->
success
(
'您未作出任何修改'
,
url
(
'user/center/myBalance'
),
true
);
}
}
else
{
$this
->
success
(
'密码不一致'
,
''
,
false
);
}
}
else
{
$this
->
success
(
'未知错误'
,
''
,
false
);
}
}
}
}
\ No newline at end of file
...
...
public/themes/simpleboot3/friendship/password_manager.html
查看文件 @
77e2694
...
...
@@ -162,7 +162,7 @@
success
:
function
(
data
)
{
if
(
data
.
data
===
true
)
{
localStorage
.
clear
();
window
.
location
.
href
=
"{:url('
user/Center
/enterPassword')}"
window
.
location
.
href
=
"{:url('
friendship/Friend
/enterPassword')}"
}
else
{
alert
(
data
.
msg
);
}
...
...
请
注册
或
登录
后发表评论