Skip to content

Commit 71b8673

Browse files
committed
verifyToken → checkToken
1 parent cf48fdd commit 71b8673

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ url = "/api/user/:action"
401401
[resetPassword]
402402
[account]
403403
[session]
404-
verifyToken = 1
404+
checkToken = 1
405405
==
406406
{% if this.param.action == 'signin' %}
407407
{% do response(
@@ -433,7 +433,7 @@ description = "Auth API Layout"
433433
is_priority = 1
434434
435435
[session]
436-
verifyToken = 1
436+
checkToken = 1
437437
==
438438
{% if session.user %}
439439
{% page %}

components/Session.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ public function defineProperties()
6464
'type' => 'dropdown',
6565
'default' => ''
6666
],
67-
'verifyToken' => [
68-
'title' => /*Use token authentication*/'rainlab.user::lang.session.verify_token',
69-
'description' => /*Check authentication using a verified bearer token.*/'rainlab.user::lang.session.verify_token_desc',
67+
'checkToken' => [
68+
'title' => /*Use token authentication*/'rainlab.user::lang.session.check_token',
69+
'description' => /*Check authentication using a verified bearer token.*/'rainlab.user::lang.session.check_token_desc',
7070
'type' => 'checkbox',
7171
'default' => 0
7272
],
@@ -95,7 +95,7 @@ public function getAllowedUserGroupsOptions()
9595
public function init()
9696
{
9797
// Login with token
98-
if ($this->property('verifyToken', false)) {
98+
if ($this->property('checkToken', false)) {
9999
$this->authenticateWithBearerToken();
100100
}
101101

lang/en/lang.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
'redirect_desc' => 'Page name to redirect if access is denied.',
234234
'logout' => 'You have been successfully logged out!',
235235
'stop_impersonate_success' => 'You are no longer impersonating a user.',
236-
'verify_token' => 'Use token authentication',
237-
'verify_token_desc' => 'Check this box to allow authentication using a bearer token.',
236+
'check_token' => 'Use token authentication',
237+
'check_token_desc' => 'Check this box to allow authentication using a bearer token.',
238238
]
239239
];

0 commit comments

Comments
 (0)