Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fahrtenbuch
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWP WS21_22 - Fahrtenbuch
Team Einhorn
fahrtenbuch
Commits
c2a9f891
Commit
c2a9f891
authored
3 years ago
by
Leander Tolksdorf
Browse files
Options
Downloads
Patches
Plain Diff
change username field to email in auth.controller
parent
e2299e70
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/src/controllers/auth.controllers.ts
+1
-1
1 addition, 1 deletion
server/src/controllers/auth.controllers.ts
with
1 addition
and
1 deletion
server/src/controllers/auth.controllers.ts
+
1
−
1
View file @
c2a9f891
...
...
@@ -7,7 +7,7 @@ import envVars from "../config";
//log in
const
authLoginController
=
async
(
req
:
Request
,
res
:
Response
)
=>
{
try
{
const
{
username
:
email
,
password
}
=
req
.
body
;
const
{
email
,
password
}
=
req
.
body
;
const
employee
=
await
Employee
.
findOne
({
attributes
:
[
"
email
"
,
"
password
"
,
"
role
"
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment