übergang auf pakete, integration von stripe und paypal, blog hinzugefügt.

This commit is contained in:
Codex Agent
2025-09-29 07:59:39 +02:00
parent 0a643c3e4d
commit e52a4005aa
83 changed files with 4284 additions and 629 deletions

View File

@@ -26,7 +26,7 @@ class LoginRequest extends FormRequest
public function rules(): array
{
return [
'email' => ['required', 'string', 'email'],
'login' => ['required', 'string'],
'password' => ['required', 'string'],
];
}
@@ -40,11 +40,14 @@ class LoginRequest extends FormRequest
{
$this->ensureIsNotRateLimited();
if (! Auth::attempt($this->only('email', 'password'), $this->boolean('remember'))) {
$credentials = $this->only('login', 'password');
$credentials['login'] = $this->input('login');
if (! Auth::attempt($credentials, $this->boolean('remember'))) {
RateLimiter::hit($this->throttleKey());
throw ValidationException::withMessages([
'email' => __('auth.failed'),
'login' => __('auth.failed'),
]);
}
@@ -79,7 +82,7 @@ class LoginRequest extends FormRequest
*/
public function throttleKey(): string
{
return $this->string('email')
return $this->string('login')
->lower()
->append('|'.$this->ip())
->transliterate()