Skip to content

make electron send email validation URLs with a nextlink of riot.im - #2808

Merged
ara4n merged 3 commits into
developfrom
matthew/electron-captcha2
Dec 24, 2016
Merged

make electron send email validation URLs with a nextlink of riot.im#2808
ara4n merged 3 commits into
developfrom
matthew/electron-captcha2

Conversation

@ara4n

@ara4n ara4n commented Dec 24, 2016

Copy link
Copy Markdown
Member

rather than file:///, which crashes browsers in horrible ways c.f. https://twitter.com/agumonkey/status/812060535567040512. This was already worked around on sydent.

@ara4n

ara4n commented Dec 24, 2016

Copy link
Copy Markdown
Member Author

twinned with matrix-org/matrix-react-sdk#601

@richvdh richvdh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks ok as a temporary fix

Comment thread src/vector/index.js
window.location.pathname +
'#/register';
if (window.location.protocol === "file:") {
return 'https://riot.im/app/#/register';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This really ought to be configurable. Can we make it pull it from the config file?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes, we can. but riot.im/app is hardcoded elsewhere right now, and we'll have to tidy this up later; i want to ship this.

@ara4n
ara4n merged commit b06d045 into develop Dec 24, 2016
@t3chguy
t3chguy deleted the matthew/electron-captcha2 branch May 12, 2022 08:56
t3chguy pushed a commit that referenced this pull request Mar 25, 2026
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants