Skip to content

fix(auth): migrate authenticate.php to use vue-based form#17223

Open
Antreesy wants to merge 2 commits intomainfrom
fix/17192/public-room-guest-auth
Open

fix(auth): migrate authenticate.php to use vue-based form#17223
Antreesy wants to merge 2 commits intomainfrom
fix/17192/public-room-guest-auth

Conversation

@Antreesy
Copy link
Contributor

@Antreesy Antreesy commented Feb 26, 2026

☑️ Resolves

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

🏚️ Before 🏡 After
2026-02-26_17h16_47 2026-02-26_17h17_49
Errors and warnings Translations
2026-02-26_17h17_25 2026-02-26_17h30_43
Video verification Failed request to Talk
image image

🏁 Checklist

  • 🌏 Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Integrations with Files sidebar and other apps
    • Not risky to browser differences / client
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

🛠️ API Checklist

🚧 Tasks

  • ??

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • 📘 API documentation in docs/ has been updated or is not required
  • 🔖 Capability is added or not needed

@Antreesy Antreesy added this to the 🏖️ Next Major (34) milestone Feb 26, 2026
@Antreesy Antreesy self-assigned this Feb 26, 2026
@Antreesy Antreesy added bug feature: api 🛠️ OCS API for conversations, chats and participants feature: frontend 🖌️ "Web UI" client labels Feb 26, 2026
@Antreesy Antreesy force-pushed the fix/17192/public-room-guest-auth branch from b95b82e to 39afa6c Compare February 27, 2026 11:03
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy Antreesy force-pushed the fix/17192/public-room-guest-auth branch from 39afa6c to 2d34959 Compare February 27, 2026 11:29
</fieldset>
</form>
</div>
<div class="hidden-visually"><?php p($l->t('This conversation is password-protected.')); ?></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

You removed half of the condition tree (wrong password), it is fine to remove this div as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was requested by Joas to keep it for security / bruteforce CI

\OCP\Util::addStyle('core', 'publicshareauth');
\OCP\Util::addScript('core', 'publicshareauth');
/** @var array{share: \OCP\Share\IShare, identityOk?: bool, wrongpw?: bool} $_ */
\OCP\Util::addStyle('spreed', 'talk-public-share-auth-form');
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, when complied, vue component is split in JS and CSS (that included vue library styles as well)

$initialState = \OCP\Server::get(\OCP\IInitialStateService::class);
$initialState->provideInitialState('spreed', 'talk-public-share-auth', [
'showBruteForceWarning' => $_['showBruteForceWarning'] ?? null,
'wrongpw' => $_['wrongpw'] ?? null,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'wrongpw' => $_['wrongpw'] ?? null,
'wrongPassword' => $_['wrongPassword'] ?? null,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can change the key name for Vue component, by $_['wrongpw'] might be returned by server core, so I'm not messing with it

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

Labels

bug feature: api 🛠️ OCS API for conversations, chats and participants feature: frontend 🖌️ "Web UI" client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: TALK - Guest access with Link+Password no reaction at guest login page

2 participants