Skip to content

feat: Limit email input to 255 chars - #44218

Merged
nfebe merged 2 commits into
masterfrom
613-limit-auth-input-emails-255
Mar 21, 2024
Merged

feat: Limit email input to 255 chars#44218
nfebe merged 2 commits into
masterfrom
613-limit-auth-input-emails-255

Conversation

@nfebe

@nfebenfebe commented Mar 15, 2024

Copy link
Copy Markdown
Contributor

Screenshots

ABC
Screenshot from 2024-03-15 18-10-06Screenshot from 2024-03-16 01-06-51Screenshot from 2024-03-16 01-07-02

@nfebe
nfebeforce-pushed the 613-limit-auth-input-emails-255 branch 2 times, most recently from 00a96a9 to 21c61c8CompareMarch 15, 2024 11:17
@nickvergessennickvergessen changed the title WIP: Limit email input on auth pages to 255 charsWIP: Limit email input to 255 charsMar 15, 2024
@nfebe
nfebeforce-pushed the 613-limit-auth-input-emails-255 branch 2 times, most recently from 4f9dee4 to b6a0c6aCompareMarch 16, 2024 00:15
@nfebenfebe changed the title WIP: Limit email input to 255 charsfeat: Limit email input to 255 charsMar 16, 2024
Comment threadcore/Controller/LoginController.php Fixed
Comment threadcore/Controller/LoginController.php Fixed
@nfebe
nfebe marked this pull request as ready for review March 16, 2024 00:22
@nfebe
nfebeforce-pushed the 613-limit-auth-input-emails-255 branch from b6a0c6a to c9ca17dCompareMarch 16, 2024 00:28
@skjnldsvskjnldsv added bug 2. developing Work in progress labels Mar 16, 2024
@skjnldsvskjnldsv added this to the Nextcloud 29 milestone Mar 16, 2024
@skjnldsv

Copy link
Copy Markdown
Member

Labels pleaaase :)

@nfebenfebe self-assigned this Mar 16, 2024
@nfebenfebe added the 3. to review Waiting for reviews label Mar 16, 2024
Comment threadcore/Controller/LoginController.php Outdated
@susnuxsusnux removed the 3. to review Waiting for reviews label Mar 17, 2024
@AltahrimAltahrim mentioned this pull request Mar 18, 2024
@nfebe
nfebeforce-pushed the 613-limit-auth-input-emails-255 branch from c9ca17d to 301b3d4CompareMarch 18, 2024 19:30
return $this->createLoginFailedResponse(
$user,
$user,
$redirect_url,

Check notice

Code scanning / Psalm

PossiblyNullArgument

Argument 3 of OC\Core\Controller\LoginController::createLoginFailedResponse cannot be null, possibly null value provided

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the following or change default on line 317:

Suggested change
$redirect_url,
(string) $redirect_url,

@nfebe
nfebe requested a review from susnuxMarch 18, 2024 19:47
Comment threadcore/Controller/LoginController.php
@AltahrimAltahrim mentioned this pull request Mar 20, 2024
@nfebe
nfebeforce-pushed the 613-limit-auth-input-emails-255 branch from 301b3d4 to ada4138CompareMarch 20, 2024 15:43
@nfebe
nfebe requested a review from AltahrimMarch 20, 2024 15:43
Comment threadcore/Controller/LoginController.php Outdated
@nfebe
nfebeforce-pushed the 613-limit-auth-input-emails-255 branch from ada4138 to 4a80230CompareMarch 20, 2024 16:52
@nfebe
nfebe requested a review from susnuxMarch 20, 2024 16:52
Excessively long emails reported make server unresponsive.
We could at some point, consider adding a configuration for sysadmins to bypass this setting
on their instance if they want.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
@nfebe
nfebeforce-pushed the 613-limit-auth-input-emails-255 branch from 4a80230 to 2792d8bCompareMarch 21, 2024 09:36
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile /

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe
nfebe merged commit c161f0c into masterMar 21, 2024
@nfebe
nfebe deleted the 613-limit-auth-input-emails-255 branch March 21, 2024 14:06
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable29

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable28

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable27

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developingWork in progressbug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants

@nfebe@skjnldsv@susnux@Altahrim@github-advanced-security@nextcloud-command