You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin requires the [Ajax Framework](https://octobercms.com/docs/cms/ajax) to be included in your layout/page in order to handle form requests.
10
+
This plugin requires the [Ajax Framework](https://wintercms.com/docs/cms/ajax) to be included in your layout/page in order to handle form requests.
11
11
12
12
## Managing users
13
13
@@ -47,11 +47,7 @@ As a security precaution, you may restrict users from having sessions across mul
47
47
48
48
#### Notifications
49
49
50
-
When a user is first activated -- either by registration, email confirmation or administrator approval -- they are sent a welcome email. To disable the welcome email, select "Do not send a notification" from the **Welcome mail template** dropdown. The default message template used is `rainlab.user::mail.welcome` and you can customize this by selecting **Mail > Mail Templates** from the settings menu.
51
-
52
-
## Extended features
53
-
54
-
For extra functionality, consider also installing the [User Plus+ plugin](http://octobercms.com/plugin/rainlab-userplus) (`RainLab.UserPlus`).
50
+
When a user is first activated -- either by registration, email confirmation or administrator approval -- they are sent a welcome email. To disable the welcome email, select "Do not send a notification" from the **Welcome mail template** dropdown. The default message template used is `winter.user::mail.welcome` and you can customize this by selecting **Mail > Mail Templates** from the settings menu.
55
51
56
52
## Session component
57
53
@@ -90,7 +86,7 @@ The `security` property can be user, guest or all. The `redirect` property refer
90
86
91
87
Access to routes can be restricted by applying the `AuthMiddleware`.
92
88
93
-
Route::group(['middleware' => 'RainLab\User\Classes\AuthMiddleware'], function () {
89
+
Route::group(['middleware' => 'Winter\User\Classes\AuthMiddleware'], function () {
94
90
// All routes here will require authentication
95
91
});
96
92
@@ -153,7 +149,7 @@ By default, the User plugin requires a minimum password length of 8 characters f
153
149
154
150
### Flash messages
155
151
156
-
This plugin makes use of October's [`Flash API`](http://octobercms.com/docs/markup/tag-flash). In order to display the error messages, you need to place the following snippet in your layout or page.
152
+
This plugin makes use of Winter CMS's [`Flash API`](https://wintercms.com/docs/markup/tag-flash). In order to display the error messages, you need to place the following snippet in your layout or page.
157
153
158
154
{% flash %}
159
155
<div class="alert alert-{{ type == 'error' ? 'danger' : type }}">{{ message }}</div>
@@ -219,7 +215,7 @@ Here the local handler method will take priority over the **account** component'
219
215
220
216
## Auth facade
221
217
222
-
There is an `Auth` facade you may use for common tasks, it primarily inherits the `October\Rain\Auth\Manager` class for functionality.
218
+
There is an `Auth` facade you may use for common tasks, it primarily inherits the `Winter\Storm\Auth\Manager` class for functionality.
223
219
224
220
You may use `Auth::register` to register an account:
225
221
@@ -290,7 +286,7 @@ When a user registers with the same email address using the `Auth::register` met
290
286
291
287
> **Important**: If you are using guest accounts, it is important to disable sensitive functionality for user accounts that are not verified, since it may be possible for anyone to inherit a guest account.
292
288
293
-
You may also convert a guest to a registered user with the `convertToRegistered` method. This will generate a random password and sends an invitation using the `rainlab.user::mail.invite` template.
289
+
You may also convert a guest to a registered user with the `convertToRegistered` method. This will generate a random password and sends an invitation using the `winter.user::mail.invite` template.
294
290
295
291
$user->convertToRegistered();
296
292
@@ -302,26 +298,26 @@ To disable the notification and password reset, pass the first argument as false
302
298
303
299
This plugin will fire some global events that can be useful for interacting with other plugins.
304
300
305
-
-**rainlab.user.beforeRegister**: Before the user's registration is processed. Passed the `$data` variable by reference to enable direct modifications to the `$data` provided to the `Auth::register()` method.
306
-
-**rainlab.user.register**: The user has successfully registered. Passed the `$user` object and the submitted `$data` variable.
307
-
-**rainlab.user.beforeAuthenticate**: Before the user is attempting to authenticate using the Account component.
308
-
-**rainlab.user.login**: The user has successfully signed in.
309
-
-**rainlab.user.logout**: The user has successfully signed out.
310
-
-**rainlab.user.deactivate**: The user has opted-out of the site by deactivating their account. This should be used to disable any content the user may want removed.
311
-
-**rainlab.user.reactivate**: The user has reactivated their own account by signing back in. This should revive the users content on the site.
312
-
-**rainlab.user.getNotificationVars**: Fires when sending a user notification to enable passing more variables to the email templates. Passes the `$user` model the template will be for.
313
-
-**rainlab.user.view.extendListToolbar**: Fires when the user listing page's toolbar is rendered.
314
-
-**rainlab.user.view.extendPreviewToolbar**: Fires when the user preview page's toolbar is rendered.
301
+
-**winter.user.beforeRegister**: Before the user's registration is processed. Passed the `$data` variable by reference to enable direct modifications to the `$data` provided to the `Auth::register()` method.
302
+
-**winter.user.register**: The user has successfully registered. Passed the `$user` object and the submitted `$data` variable.
303
+
-**winter.user.beforeAuthenticate**: Before the user is attempting to authenticate using the Account component.
304
+
-**winter.user.login**: The user has successfully signed in.
305
+
-**winter.user.logout**: The user has successfully signed out.
306
+
-**winter.user.deactivate**: The user has opted-out of the site by deactivating their account. This should be used to disable any content the user may want removed.
307
+
-**winter.user.reactivate**: The user has reactivated their own account by signing back in. This should revive the users content on the site.
308
+
-**winter.user.getNotificationVars**: Fires when sending a user notification to enable passing more variables to the email templates. Passes the `$user` model the template will be for.
309
+
-**winter.user.view.extendListToolbar**: Fires when the user listing page's toolbar is rendered.
310
+
-**winter.user.view.extendPreviewToolbar**: Fires when the user preview page's toolbar is rendered.
A common requirement is to adapt another to a legacy authentication system. In the example below, the `WordPressLogin::check` method would check the user password using an alternative hashing method, and if successful, update to the new one used by October.
318
+
A common requirement is to adapt another to a legacy authentication system. In the example below, the `WordPressLogin::check` method would check the user password using an alternative hashing method, and if successful, update to the new one used by Winter CMS.
0 commit comments