Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
geek-egg-tpl
Project
Project
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
huanglu
geek-egg-tpl
Commits
f84c6a1b
Commit
f84c6a1b
authored
Jun 30, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update
parent
0e854772
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
account.ts
app/service/account.ts
+2
-1
No files found.
app/service/account.ts
View file @
f84c6a1b
...
...
@@ -2,7 +2,7 @@ import { Service } from 'egg';
export
default
class
Account
extends
Service
{
public
async
login
()
{
const
{
ctx
}
=
this
;
const
{
ctx
,
logger
}
=
this
;
// const sourceUrl = config.source_url;
// const result = await ctx.helper.http().get('https://registry.npm.taobao.org/egg/latest');
console
.
log
(
'sfsfs; '
,
ctx
.
token
);
...
...
@@ -10,6 +10,7 @@ export default class Account extends Service {
const
token
=
ctx
.
token
;
const
hashName
=
await
ctx
.
genHash
(
pwd
);
// const origin = await ctx.compare(pwd, hashName);
logger
.
info
(
'login: '
,
{
pwd
,
name
,
age
});
const
user
=
await
ctx
.
model
.
User
.
create
({
name
,
pwd
:
hashName
,
...
...
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