summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCallum Brown <callum@calcuode.com>2021-08-15 15:51:10 +0100
committerCallum Brown <callum@calcuode.com>2021-08-15 15:51:10 +0100
commit0da58c476c05c3ec52fe69609b741d06938c9521 (patch)
treef44a0bef27f96f18c6df03fe95bfe7fc7de5452b /src
parentFix cancel button on registration token dialog (diff)
downloadnheko-0da58c476c05c3ec52fe69609b741d06938c9521.tar.xz
Run linter
Diffstat (limited to 'src')
-rw-r--r--src/RegisterPage.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/RegisterPage.cpp b/src/RegisterPage.cpp
index ddd4d47d..fb6a1b97 100644
--- a/src/RegisterPage.cpp
+++ b/src/RegisterPage.cpp
@@ -492,12 +492,13 @@ RegisterPage::doUIA(const mtx::user_interactive::Unauthorized &unauthorized)
                                         QString(),
                                         &ok);
 
-		if (ok) {
-			emit registrationWithAuth(mtx::user_interactive::Auth{
-			  session, mtx::user_interactive::auth::RegistrationToken{token.toStdString()}});
-		} else {
-			emit errorOccurred();
-		}
+                if (ok) {
+                        emit registrationWithAuth(mtx::user_interactive::Auth{
+                          session,
+                          mtx::user_interactive::auth::RegistrationToken{token.toStdString()}});
+                } else {
+                        emit errorOccurred();
+                }
         } else {
                 // use fallback
                 auto dialog = new dialogs::FallbackAuth(