Browse Source

Adjusting default user and check name+pswd (fix in future with API)

master
GabrielTrettel 4 years ago
parent
commit
1677016f0f
  1. 7
      src/app/api/auth.js

7
src/app/api/auth.js

@ -1,10 +1,15 @@
function login(name, password) {
// NOTE: Change to API in future
if (name !== "1199998888" || password !== "qwertyui") {
return {
ok: false,
};
}
return {
ok: true,
data:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiRnVsYW5vIGRlIFRhbCIsImVtYWlsIjoiZnVsYW5vLmRlLnRhbEBib2wuY29tLmJyIiwiSUQiOiIxIn0.5435hPLABKVcejsZokCGG77G6xjBUcKAU_lAjELzT3g",
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiVXN1w6FyaW8gVGVzdGUiLCJlbWFpbCI6InVzdWFyaW9AdGVzdGUuY29tLmJyIiwiSUQiOiIxIn0.hGrMWzg3EPlmjbga4-hmcMFmkDINFAWVP9kOmebXeAM",
};
}

Loading…
Cancel
Save