Add user login to admin interface
This commit is contained in:
parent
dbe494751a
commit
82bfc15057
15 changed files with 256 additions and 79 deletions
16
internal/wisski/ingredient/php/extras/users.php
Normal file
16
internal/wisski/ingredient/php/extras/users.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
use Drupal\user\Entity\User;
|
||||
|
||||
/** lists all the users */
|
||||
function list_users() {
|
||||
|
||||
$usernames = [];
|
||||
$users = User::loadMultiple(NULL);
|
||||
foreach($users as $user){
|
||||
$name = $user->get('name')->getString();
|
||||
if(empty($name)) continue;
|
||||
$usernames[] = $name;
|
||||
}
|
||||
return $usernames;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue