/var/www/hkosl.com/littleark/webadmin/libraies/illuminate/contracts/Auth/PasswordBroker.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php

namespace Illuminate\Contracts\Auth;

use 
Closure;

interface 
PasswordBroker
{
    
/**
     * Constant representing a successfully sent reminder.
     *
     * @var string
     */
    
const RESET_LINK_SENT 'passwords.sent';

    
/**
     * Constant representing a successfully reset password.
     *
     * @var string
     */
    
const PASSWORD_RESET 'passwords.reset';

    
/**
     * Constant representing the user not found response.
     *
     * @var string
     */
    
const INVALID_USER 'passwords.user';

    
/**
     * Constant representing an invalid password.
     *
     * @var string
     */
    
const INVALID_PASSWORD 'passwords.password';

    
/**
     * Constant representing an invalid token.
     *
     * @var string
     */
    
const INVALID_TOKEN 'passwords.token';

    
/**
     * Send a password reset link to a user.
     *
     * @param  array  $credentials
     * @return string
     */
    
public function sendResetLink(array $credentials);

    
/**
     * Reset the password for the given token.
     *
     * @param  array     $credentials
     * @param  \Closure  $callback
     * @return mixed
     */
    
public function reset(array $credentialsClosure $callback);

    
/**
     * Set a custom password validator.
     *
     * @param  \Closure  $callback
     * @return void
     */
    
public function validator(Closure $callback);

    
/**
     * Determine if the passwords match for the request.
     *
     * @param  array  $credentials
     * @return bool
     */
    
public function validateNewPassword(array $credentials);
}