mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9900 from creative-commoners/pulls/4.7/help
ENH Better describe the 'keep me signed in' checkbox
This commit is contained in:
commit
d52500482a
@ -267,6 +267,8 @@ en:
|
||||
FIRSTNAME: 'First Name'
|
||||
INTERFACELANG: 'Interface Language'
|
||||
KEEPMESIGNEDIN: 'Keep me signed in'
|
||||
REMEMBER_ME: 'Remember me for {count} days'
|
||||
KEEP_ME_SIGNED_IN_TOOLTIP: 'You will remain authenticated on this device for {count} days. Only use this feature if you trust the device you are using. Authenticated devices can be managed in your profile.'
|
||||
LOGGEDINAS: 'You''re logged in as {name}.'
|
||||
NEWPASSWORD: 'New Password'
|
||||
PASSWORD: Password
|
||||
|
@ -58,15 +58,20 @@ class CMSMemberLoginForm extends MemberLoginForm
|
||||
'Password',
|
||||
CheckboxField::create(
|
||||
"Remember",
|
||||
_t('SilverStripe\\Security\\Member.KEEPMESIGNEDIN', "Keep me signed in")
|
||||
)->setAttribute(
|
||||
'title',
|
||||
_t(
|
||||
'SilverStripe\\Security\\Member.REMEMBERME',
|
||||
"Remember me next time? (for {count} days on this device)",
|
||||
'SilverStripe\\Security\\Member.REMEMBER_ME',
|
||||
"Remember me for {count} days",
|
||||
[ 'count' => RememberLoginHash::config()->uninherited('token_expiry_days') ]
|
||||
)
|
||||
)
|
||||
->setAttribute(
|
||||
'title',
|
||||
_t(
|
||||
'SilverStripe\\Security\\Member.KEEP_ME_SIGNED_IN_TOOLTIP',
|
||||
'You will remain authenticated on this device for {count} days. Only use this feature if you trust the device you are using. Authenticated devices can be managed in your profile.',
|
||||
['count' => RememberLoginHash::config()->uninherited('token_expiry_days')]
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -153,15 +153,20 @@ class MemberLoginForm extends BaseLoginForm
|
||||
$fields->push(
|
||||
CheckboxField::create(
|
||||
"Remember",
|
||||
_t('SilverStripe\\Security\\Member.KEEPMESIGNEDIN', "Keep me signed in")
|
||||
)->setAttribute(
|
||||
'title',
|
||||
_t(
|
||||
'SilverStripe\\Security\\Member.REMEMBERME',
|
||||
"Remember me next time? (for {count} days on this device)",
|
||||
'SilverStripe\\Security\\Member.REMEMBER_ME',
|
||||
"Remember me for {count} days",
|
||||
[ 'count' => RememberLoginHash::config()->uninherited('token_expiry_days') ]
|
||||
)
|
||||
)
|
||||
->setAttribute(
|
||||
'title',
|
||||
_t(
|
||||
'SilverStripe\\Security\\Member.KEEP_ME_SIGNED_IN_TOOLTIP',
|
||||
'You will remain authenticated on this device for {count} days. Only use this feature if you trust the device you are using. Authenticated devices can be managed in your profile.',
|
||||
['count' => RememberLoginHash::config()->uninherited('token_expiry_days')]
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user