Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
王水玲
2016-07-19 09:46:31 +0800
Commit
52e424544e0b2e4e820b1e4c2e4add6d6aa5d05a
2 parents
3f0c7982
6a07473f
Merge branch 'feature/passport' into feature/encryptionUid
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
apps/passport/auth.js
public/scss/layout/_common.css
public/scss/passport/_common.css
apps/passport/auth.js
View file @
52e4245
...
...
@@ -32,6 +32,7 @@ passport.use(new LocalStrategy({
passwordField
:
'password'
,
passReqToCallback
:
true
},
(
req
,
username
,
password
,
done
)
=>
{
let
area
=
req
.
body
.
areaCode
||
'86'
;
if
(
isNaN
(
parseInt
(
area
,
0
))
||
_
.
isEmpty
(
username
)
||
_
.
isEmpty
(
password
))
{
...
...
public/scss/layout/_common.css
View file @
52e4245
...
...
@@ -77,20 +77,20 @@ a {
.yoho-tip
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
z-index
:
4
;
display
:
none
;
padding
:
68px
0
;
max-width
:
600px
;
text-align
:
center
;
width
:
70%
;
border
:
none
;
border-radius
:
20px
;
padding
:
34
PX
0
;
top
:
50%
;
left
:
50%
;
margin-left
:
-35%
;
margin-top
:
-45
PX
;
background-color
:
rgba
(
0
,
0
,
0
,
0.7
);
color
:
#fff
;
text-align
:
center
;
font-size
:
36px
;
transform
:
translate
(
-50%
,
-50%
);
font-size
:
18
PX
;
border
:
none
;
z-index
:
4
;
border-radius
:
10
PX
;
}
.order-failure
{
...
...
public/scss/passport/_common.css
View file @
52e4245
...
...
@@ -4,6 +4,10 @@ body.passport-body {
*
{
box-sizing
:
border-box
;
}
.main-wrap
{
position
:
relative
;
}
}
.passport-page
{
...
...
Please
register
or
login
to post a comment