diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-11-03 18:36:12 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-11-03 18:39:51 +0100 |
commit | 211fd9d76cfd691eceb8c77297ee20fd0fde4bbb (patch) | |
tree | 287451ffac2b9eb556dd6d57578a6fbdee591913 /src/ui/UIA.h | |
parent | Merge branch 'macos_api_updates' into 'master' (diff) | |
download | nheko-211fd9d76cfd691eceb8c77297ee20fd0fde4bbb.tar.xz |
Fix registration on matrix.org
This was a bit of a journey: https://github.com/matrix-org/matrix-doc/pull/3471 But it should work now and we now use the UIAHandler everywhere. fixes #670
Diffstat (limited to '')
-rw-r--r-- | src/ui/UIA.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ui/UIA.h b/src/ui/UIA.h index fb047451..0db23897 100644 --- a/src/ui/UIA.h +++ b/src/ui/UIA.h @@ -27,14 +27,31 @@ public: public slots: void continuePassword(QString password); + void continueEmail(QString email); + void continuePhoneNumber(QString countryCode, QString phoneNumber); + void submit3pidToken(QString token); + void continue3pidReceived(); signals: void password(); + void email(); + void phoneNumber(); + + void confirm3pidToken(); + void prompt3pidToken(); + void tokenAccepted(); void titleChanged(); + void error(QString msg); private: std::optional<mtx::http::UIAHandler> currentHandler; mtx::user_interactive::Unauthorized currentStatus; QString title_; + + // for 3pids like email and phone number + std::string client_secret; + std::string sid; + std::string submit_url; + bool email_ = true; }; |