mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix lint
This commit is contained in:
parent
546d371139
commit
909c7e3a9a
@ -31,15 +31,9 @@ import { UserRepository } from '../../typeorm/repository/User'
|
||||
export class UserResolver {
|
||||
@Query(() => User)
|
||||
@UseMiddleware(klicktippNewsletterStateMiddleware)
|
||||
async login(
|
||||
@Args() { email, password }: UnsecureLoginArgs,
|
||||
@Ctx() context: any,
|
||||
): Promise<User> {
|
||||
async login(@Args() { email, password }: UnsecureLoginArgs, @Ctx() context: any): Promise<User> {
|
||||
email = email.trim().toLowerCase()
|
||||
const result = await apiPost(CONFIG.LOGIN_API_URL + 'unsecureLogin', {
|
||||
email,
|
||||
password,
|
||||
})
|
||||
const result = await apiPost(CONFIG.LOGIN_API_URL + 'unsecureLogin', { email, password })
|
||||
|
||||
// if there is no user, throw an authentication error
|
||||
if (!result.success) {
|
||||
|
||||
@ -39,7 +39,7 @@ with:
|
||||
{
|
||||
"email": "max.musterman@gmail.de",
|
||||
"username": "Maxilein",
|
||||
"password": "123abcDE&"
|
||||
"password": "123abcDE&",
|
||||
"hasElopage": true
|
||||
}
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user