We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51db2d5 commit e7e7ecfCopy full SHA for e7e7ecf
src/users/ldapusers.service.ts
@@ -98,11 +98,7 @@ export class LdapUsersService implements UsersService {
98
}
99
100
async create(createUserDto: CreateUserDto): Promise<UserLoginResponseDto> {
101
- // lookup user in LDAP
102
- const ldapEntry = await this.findUserInLdap(createUserDto.email);
103
- const userData = await this.createUserFromLdapEntry(ldapEntry);
104
-
105
- return new UserLoginResponseDto(userData, null);
+ throw new HttpException('User creation is disabled. Use your LDAP-Credentials to login.', HttpStatus.BAD_REQUEST);
106
107
108
async findOne(id: string): Promise<User> {
0 commit comments