Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

Application modulaire fonctionnelle !

Emmanuel ROY authored on 12/08/2019 15:10:25
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,76 +0,0 @@
1
-<?php
2
-
3
-namespace Illuminate\Contracts\Auth;
4
-
5
-use Closure;
6
-
7
-interface PasswordBroker
8
-{
9
-    /**
10
-     * Constant representing a successfully sent reminder.
11
-     *
12
-     * @var string
13
-     */
14
-    const RESET_LINK_SENT = 'passwords.sent';
15
-
16
-    /**
17
-     * Constant representing a successfully reset password.
18
-     *
19
-     * @var string
20
-     */
21
-    const PASSWORD_RESET = 'passwords.reset';
22
-
23
-    /**
24
-     * Constant representing the user not found response.
25
-     *
26
-     * @var string
27
-     */
28
-    const INVALID_USER = 'passwords.user';
29
-
30
-    /**
31
-     * Constant representing an invalid password.
32
-     *
33
-     * @var string
34
-     */
35
-    const INVALID_PASSWORD = 'passwords.password';
36
-
37
-    /**
38
-     * Constant representing an invalid token.
39
-     *
40
-     * @var string
41
-     */
42
-    const INVALID_TOKEN = 'passwords.token';
43
-
44
-    /**
45
-     * Send a password reset link to a user.
46
-     *
47
-     * @param  array  $credentials
48
-     * @return string
49
-     */
50
-    public function sendResetLink(array $credentials);
51
-
52
-    /**
53
-     * Reset the password for the given token.
54
-     *
55
-     * @param  array     $credentials
56
-     * @param  \Closure  $callback
57
-     * @return mixed
58
-     */
59
-    public function reset(array $credentials, Closure $callback);
60
-
61
-    /**
62
-     * Set a custom password validator.
63
-     *
64
-     * @param  \Closure  $callback
65
-     * @return void
66
-     */
67
-    public function validator(Closure $callback);
68
-
69
-    /**
70
-     * Determine if the passwords match for the request.
71
-     *
72
-     * @param  array  $credentials
73
-     * @return bool
74
-     */
75
-    public function validateNewPassword(array $credentials);
76
-}
Browse code

initial commit

Emmanuel ROY authored on 09/08/2019 08:39:02
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,76 @@
1
+<?php
2
+
3
+namespace Illuminate\Contracts\Auth;
4
+
5
+use Closure;
6
+
7
+interface PasswordBroker
8
+{
9
+    /**
10
+     * Constant representing a successfully sent reminder.
11
+     *
12
+     * @var string
13
+     */
14
+    const RESET_LINK_SENT = 'passwords.sent';
15
+
16
+    /**
17
+     * Constant representing a successfully reset password.
18
+     *
19
+     * @var string
20
+     */
21
+    const PASSWORD_RESET = 'passwords.reset';
22
+
23
+    /**
24
+     * Constant representing the user not found response.
25
+     *
26
+     * @var string
27
+     */
28
+    const INVALID_USER = 'passwords.user';
29
+
30
+    /**
31
+     * Constant representing an invalid password.
32
+     *
33
+     * @var string
34
+     */
35
+    const INVALID_PASSWORD = 'passwords.password';
36
+
37
+    /**
38
+     * Constant representing an invalid token.
39
+     *
40
+     * @var string
41
+     */
42
+    const INVALID_TOKEN = 'passwords.token';
43
+
44
+    /**
45
+     * Send a password reset link to a user.
46
+     *
47
+     * @param  array  $credentials
48
+     * @return string
49
+     */
50
+    public function sendResetLink(array $credentials);
51
+
52
+    /**
53
+     * Reset the password for the given token.
54
+     *
55
+     * @param  array     $credentials
56
+     * @param  \Closure  $callback
57
+     * @return mixed
58
+     */
59
+    public function reset(array $credentials, Closure $callback);
60
+
61
+    /**
62
+     * Set a custom password validator.
63
+     *
64
+     * @param  \Closure  $callback
65
+     * @return void
66
+     */
67
+    public function validator(Closure $callback);
68
+
69
+    /**
70
+     * Determine if the passwords match for the request.
71
+     *
72
+     * @param  array  $credentials
73
+     * @return bool
74
+     */
75
+    public function validateNewPassword(array $credentials);
76
+}