The account registration is prohibited, but the account registration succeeds #10714

Closed
opened 2025-11-02 09:16:26 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @FunkyGod on GitHub (Apr 24, 2023).

Description

service]
DISABLE_REGISTRATION = true
step 1:
try registering this account :test.
step 2:
Page error:Forbidden
企业微信截图_16823008832970
step 3:check account manager
find Registered successfully
image

Gitea Version

1.19.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

1

Screenshots

1

Git Version

1

Operating System

1

How are you running Gitea?

1

Database

PostgreSQL

Originally created by @FunkyGod on GitHub (Apr 24, 2023). ### Description service] DISABLE_REGISTRATION = true step 1: try registering this account :test. step 2: Page error:Forbidden ![企业微信截图_16823008832970](https://user-images.githubusercontent.com/39259580/233882356-ff62d6a6-346b-4b27-9ca7-93d15653797d.png) step 3:check account manager find Registered successfully ![image](https://user-images.githubusercontent.com/39259580/233882510-e8c9c19d-7536-46b4-b0f5-14292fb51096.png) ### Gitea Version 1.19.1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist 1 ### Screenshots 1 ### Git Version 1 ### Operating System 1 ### How are you running Gitea? 1 ### Database PostgreSQL
GiteaMirror added the issue/needs-feedback label 2025-11-02 09:16:26 -06:00
Author
Owner

@yp05327 commented on GitHub (Apr 24, 2023):

I can't reproduce this issue in

My process:

  • start server with service.DISABLE_REGISTRATION = false
  • access user/sign_up
  • stop the server, and convert service.DISABLE_REGISTRATION into true
  • restart server
  • fill in the register form and register test user
  • get Forbidden page
  • login by admin user, and check the user list
  • no test user in the list
@yp05327 commented on GitHub (Apr 24, 2023): I can't reproduce this issue in - 1.20.0+dev-554-ga0cfc1c95 (build) - 1.19.1+15-g7d717e22a (build) - 1.19.1 (windows amd64.exe download from https://dl.gitea.com/gitea/1.19.1/) My process: - start server with service.DISABLE_REGISTRATION = false - access `user/sign_up` - stop the server, and convert service.DISABLE_REGISTRATION into true - restart server - fill in the register form and register `test` user - get `Forbidden` page - login by admin user, and check the user list - no `test` user in the list
Author
Owner

@wxiaoguang commented on GitHub (May 2, 2023):

Thanks to yp05327's test!

@FunkyGod if there is still a problem, please help to provide details reproducible steps.

@wxiaoguang commented on GitHub (May 2, 2023): Thanks to yp05327's test! @FunkyGod if there is still a problem, please help to provide details reproducible steps.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10714