Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
agetic
sitio-firebase
Commits
c08bfb4f
Commit
c08bfb4f
authored
Mar 18, 2020
by
Ivan Tancara
Browse files
await en login
parent
eb78e092
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/server.js
View file @
c08bfb4f
...
...
@@ -74,7 +74,7 @@ app.post('/login', async function (req, res) {
for
(
const
usuarioConfig
of
config
.
usuarios
)
{
if
(
usuarioConfig
.
usuario
===
usuario
&&
usuarioConfig
.
password
===
password
)
{
existe
=
true
;
respuesta
.
token
=
jwt
.
sign
({
usuario
},
config
.
SECRET_TOKEN
,
{
expiresIn
:
60
*
60
});
respuesta
.
token
=
await
jwt
.
sign
({
usuario
},
config
.
SECRET_TOKEN
,
{
expiresIn
:
60
*
60
});
}
}
if
(
!
existe
)
{
...
...
Write
Preview
Supports
Markdown
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