- Fix CI registry login (unauthorized): use dedicated REGISTRY_TOKEN secret instead of GITHUB_TOKEN, fail fast with a clear error if it's unset. - Pause ticket work-timer while a ticket is closed (won't auto-start on open or manual resume; stops on close via status change, quick action, API, or merge). - Reject empty/blank login submissions client- and server-side instead of passing them straight to the auth provider. - Closing a ticket now sends only the "ticket closed" notification instead of also sending a duplicate "status changed" one. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,16 @@ class Login extends Component
|
||||
{
|
||||
$this->error = null;
|
||||
|
||||
// The form also has HTML `required` attributes so the browser blocks
|
||||
// an empty submit before it ever reaches here, but that's only a UX
|
||||
// nicety — nothing stops a request hitting this method directly, so
|
||||
// it needs to fail closed on its own too.
|
||||
if (trim($this->username) === '' || $this->password === '') {
|
||||
$this->error = 'Podaj nazwę użytkownika i hasło.';
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$attribute = Settings::ldapUsernameAttribute();
|
||||
|
||||
// Local accounts (created with a password from the admin panel) don't
|
||||
|
||||
Reference in New Issue
Block a user