Lost-MSth / Arcaea-server

一个微型的 Arcaea 本地服务器 A small local server for Arcaea
MIT License
358 stars 53 forks source link

Is it possible to disable accounts registration? #117

Closed MrTerr1riym closed 1 year ago

MrTerr1riym commented 1 year ago

Is there any way to disable the possibility of registering accounts, but without errors? That is, I want to create 10 accounts for myself and friends and make it impossible to create new accounts, but it should still be possible to log in to existing accounts

Lost-MSth commented 1 year ago

Many ways. Changing register function in /server/user.py is the one of them. Either commenting the function or giving an error return is ok. It is surely that this way needs you have some knowledge about coding.

If you use a cloud server to deploy the server, maybe there can be a function in the control board, that can ban requests from a specific URL. It will work for banning the register game API (http(s)://<Host>/<API Endpoint>/user POST).

MrTerr1riym commented 1 year ago

Thanks for helping me :)