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
Copy file name to clipboardExpand all lines: docs/quickstart.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,26 +135,26 @@ Magic Link logins allow a user that has forgotten their password to have an emai
135
135
136
136
#### Session Notification
137
137
138
-
You can detect if a user has finished the magic link login by checking for a session value, `magic_link_login`. If they have recently completed the flow, it will exist and have a value of `true`.
138
+
You can detect if a user has finished the magic link login by checking for a session value, `magicLogin`. If they have recently completed the flow, it will exist and have a value of `true`.
139
139
140
140
```php
141
-
if (session('magic_login')) {
141
+
if (session('magicLogin')) {
142
142
return redirect()->route('set_password');
143
143
}
144
144
```
145
145
146
146
This value sticks around in the session for 5 minutes. Once you no longer need to take any actions, you might want to delete the value from the session.
147
147
148
148
```php
149
-
session()->removeTempData('magic_link_login');
149
+
session()->removeTempData('magicLogin');
150
150
```
151
151
152
152
#### Event
153
153
154
-
At the same time the above session variable is set, a `magic_login`[event](https://codeigniter.com/user_guide/extending/events.html) is fired off that you may subscribe to. Note that no data is passed to the event as you can easily grab the current user from the `user()` helper or the `auth()->user()` method.
154
+
At the same time the above session variable is set, a `magicLogin`[event](https://codeigniter.com/user_guide/extending/events.html) is fired off that you may subscribe to. Note that no data is passed to the event as you can easily grab the current user from the `user()` helper or the `auth()->user()` method.
0 commit comments