Skip to content

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea committed Nov 26, 2024
1 parent b726923 commit ddb51d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/backend/src/core/SignupService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export class SignupService {
(await this.usersRepository.count({ where: { host: IsNull(), username: Not(In(['instance.actor', 'relay.actor', this.config.adminUserName, this.config.rootUserName])) } })) >=
this.config.maxLocalUsers
) {
console.log('MAX_LOCAL_USERS');
console.log(this.config.maxLocalUsers);
console.log(await this.usersRepository.count({ where: { host: IsNull(), username: Not(In(['instance.actor', 'relay.actor', this.config.adminUserName, this.config.rootUserName])) } }));
throw new Error('MAX_LOCAL_USERS');
}
if (password != null && passwordHash == null) {
Expand Down

0 comments on commit ddb51d1

Please sign in to comment.