Show password reset count and fix query
This commit is contained in:
parent
f9059161ec
commit
087d1cf31e
|
@ -803,8 +803,8 @@ function User_view_state_admin($freeloader, $user_source)
|
||||||
$goodie = GoodieType::from(config('goodie_type'));
|
$goodie = GoodieType::from(config('goodie_type'));
|
||||||
$goodie_enabled = $goodie !== GoodieType::None;
|
$goodie_enabled = $goodie !== GoodieType::None;
|
||||||
$goodie_tshirt = $goodie === GoodieType::Tshirt;
|
$goodie_tshirt = $goodie === GoodieType::Tshirt;
|
||||||
$password_resets = PasswordReset::whereUserId($user_source->id)
|
$password_reset = PasswordReset::whereUserId($user_source->id)
|
||||||
->where('created_at', '>', $user_source->last_login_at)
|
->where('created_at', '>', $user_source->last_login_at ?: '')
|
||||||
->count();
|
->count();
|
||||||
|
|
||||||
if ($freeloader) {
|
if ($freeloader) {
|
||||||
|
@ -856,8 +856,8 @@ function User_view_state_admin($freeloader, $user_source)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($password_resets > 0) {
|
if ($password_reset) {
|
||||||
$state[] = __('Password reset');
|
$state[] = __('Password reset in progress');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $state;
|
return $state;
|
||||||
|
|
|
@ -2128,8 +2128,8 @@ msgid "shift.sign_out.hint"
|
||||||
msgstr "Du kannst dich bis %s Stunden vor dem Start der Schicht austragen. "
|
msgstr "Du kannst dich bis %s Stunden vor dem Start der Schicht austragen. "
|
||||||
"Wenn du nicht zu deiner Schicht kommen kannst, lass dich vom Himmel austragen."
|
"Wenn du nicht zu deiner Schicht kommen kannst, lass dich vom Himmel austragen."
|
||||||
|
|
||||||
msgid "Password reset"
|
msgid "Password reset in progress"
|
||||||
msgstr "Passwort zurücksetzen"
|
msgstr "Passwort zurücksetzen aktiv"
|
||||||
|
|
||||||
msgid "freeload.info.goodie"
|
msgid "freeload.info.goodie"
|
||||||
msgstr "Du warst bei dieser Schicht nicht anwesend. "
|
msgstr "Du warst bei dieser Schicht nicht anwesend. "
|
||||||
|
|
Loading…
Reference in New Issue