mirror of
https://github.com/filegator/filegator.git
synced 2025-08-19 13:01:32 +02:00
initial commit
This commit is contained in:
34
backend/Services/Auth/AuthInterface.php
Normal file
34
backend/Services/Auth/AuthInterface.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the FileGator package.
|
||||
*
|
||||
* (c) Milos Stojanovic <alcalbg@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
*/
|
||||
|
||||
namespace Filegator\Services\Auth;
|
||||
|
||||
interface AuthInterface
|
||||
{
|
||||
public function user(): ?User;
|
||||
|
||||
public function authenticate($username, $password): bool;
|
||||
|
||||
public function forget();
|
||||
|
||||
public function find($username): ?User;
|
||||
|
||||
public function store(User $user);
|
||||
|
||||
public function update($username, User $user, $password = ''): User;
|
||||
|
||||
public function add(User $user, $password): User;
|
||||
|
||||
public function delete(User $user);
|
||||
|
||||
public function getGuest(): User;
|
||||
|
||||
public function allUsers(): UsersCollection;
|
||||
}
|
Reference in New Issue
Block a user