Permalink
Browse files

allow duplicate username check in early registration step

fixes FS#2528
  • Loading branch information...
peterdd committed Jan 7, 2019
1 parent c0d7d01 commit 0e13d3a5f44d5a67427004fd3db59374cab682d4
Showing with 6 additions and 2 deletions.
  1. +6 −2 js/callbacks/searchnames.php
@@ -19,13 +19,17 @@
$user = new User(0, $proj);
}
// don't allow anonymous users to access this page at all
if ($user->isAnon()) {
die();
# at least allow for guests when user registration is enabled, fix FS#2528
if( !($user->can_register() or $user->can_self_register()) ){
die();
}
}
if (Req::has('name')) {
$searchterm = strtolower(Req::val('name'));
} else {
die();
}
// Get the list of users from the global groups above

0 comments on commit 0e13d3a

Please sign in to comment.