Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
3443e16a
Commit
3443e16a
authored
Mar 13, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
bab60577
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
bigdata/app/base/api/impl/auth/accessAuth.js
+4
-0
bigdata/app/base/service/impl/auth/userSve.js
+6
-0
No files found.
bigdata/app/base/api/impl/auth/accessAuth.js
View file @
3443e16a
...
@@ -10,6 +10,10 @@ class AccessAuthAPI extends APIBase {
...
@@ -10,6 +10,10 @@ class AccessAuthAPI extends APIBase {
this
.
userSve
=
system
.
getObject
(
"service.auth.userSve"
);
this
.
userSve
=
system
.
getObject
(
"service.auth.userSve"
);
this
.
vCodeExTime
=
120
;
//验证码缓存秒数
this
.
vCodeExTime
=
120
;
//验证码缓存秒数
}
}
async
deleteUserForTest
(
pobj
,
query
,
req
){
await
this
.
userSve
.
deleteUserForTest
(
pobj
);
return
system
.
getResult
({});
}
/*查询注册用户的信息sys*/
/*查询注册用户的信息sys*/
async
queryRegUser
(
pobj
,
query
,
req
)
{
async
queryRegUser
(
pobj
,
query
,
req
)
{
var
appid
=
req
.
app
.
id
;
var
appid
=
req
.
app
.
id
;
...
...
bigdata/app/base/service/impl/auth/userSve.js
View file @
3443e16a
...
@@ -11,6 +11,12 @@ class UserService extends ServiceBase {
...
@@ -11,6 +11,12 @@ class UserService extends ServiceBase {
this
.
roleDao
=
system
.
getObject
(
"db.auth.roleDao"
);
this
.
roleDao
=
system
.
getObject
(
"db.auth.roleDao"
);
this
.
compDao
=
system
.
getObject
(
"db.common.companyDao"
);
this
.
compDao
=
system
.
getObject
(
"db.common.companyDao"
);
}
}
//按照电话号码,删除账号
async
deleteUserForTest
(
obj
){
await
this
.
db
.
models
.
user
.
destroy
({
where
:{
mobile
:
obj
.
mobile
,
app_id
:
2
}});
await
this
.
db
.
models
.
account
.
destroy
({
where
:{
userName
:
obj
.
mobile
}});
return
{};
}
//按照电话和密码查询出用户
//按照电话和密码查询出用户
async
findUserByMobilePwd
(
appid
,
mobile
,
pwd
){
async
findUserByMobilePwd
(
appid
,
mobile
,
pwd
){
var
pwd
=
await
super
.
getEncryptStr
(
pwd
);
var
pwd
=
await
super
.
getEncryptStr
(
pwd
);
...
...
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