Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
jswinarton committed Dec 12, 2023
1 parent bf6fcdd commit da79be6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui/authenticationInApp/ViewAuthenticationSsoAccount.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ MZInAppAuthenticationThirdParty {
lineHeight: 22

// TODO link styling
// TODO currently opens a link to the account without an email queryparam
onLinkActivated: link => MZUrlOpener.openUrlLabel("account")
onLinkActivated: link => MZUrlOpener.openUrlLabel("setSsoPassword")
}

MZTextBlock {
Expand Down
4 changes: 4 additions & 0 deletions src/urlopener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ UrlOpener::UrlOpener(QObject* parent) : QObject(parent) {
UrlOpener::registerUrlLabel("forgotPassword", []() -> QString {
return QString("%1/reset_password").arg(Constants::fxaUrl());
});

UrlOpener::registerUrlLabel("setSsoPassword", []() -> QString {
return QString("%1/settings/change_password").arg(Constants::fxaUrl());
});
}

UrlOpener::~UrlOpener() { MZ_COUNT_DTOR(UrlOpener); }
Expand Down

0 comments on commit da79be6

Please sign in to comment.