mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 03:38:40 +00:00
fix(web/register): return 404 when disable register
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
833c8c2c80
commit
30dc0d7d70
@ -1,4 +1,8 @@
|
||||
<?php
|
||||
if (!UOJConfig::$data['switch']['open-register'] && DB::selectCount("SELECT COUNT(*) FROM user_info")) {
|
||||
become404Page();
|
||||
}
|
||||
|
||||
function handleRegisterPost() {
|
||||
if (!crsf_check()) {
|
||||
return '页面已过期';
|
||||
|
Loading…
Reference in New Issue
Block a user