diff options
author | Thomas <tschneider.ac@gmail.com> | 2023-01-30 17:02:24 +0100 |
---|---|---|
committer | Thomas <tschneider.ac@gmail.com> | 2023-01-30 17:02:24 +0100 |
commit | 408e51c0a6ca09a9b61632d7798e588e78a2bb31 (patch) | |
tree | a15df96a932124f0bbb1116512cbfe50d34e2df6 /app/src/main/res/layouts/peertube/layout | |
parent | 9fd834eb44612e8747fff5814a95a129e8c1bb01 (diff) |
Peertube 2FA support
Diffstat (limited to 'app/src/main/res/layouts/peertube/layout')
-rw-r--r-- | app/src/main/res/layouts/peertube/layout/activity_login_peertube.xml | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/app/src/main/res/layouts/peertube/layout/activity_login_peertube.xml b/app/src/main/res/layouts/peertube/layout/activity_login_peertube.xml index cb6e59124..1ad8a3405 100644 --- a/app/src/main/res/layouts/peertube/layout/activity_login_peertube.xml +++ b/app/src/main/res/layouts/peertube/layout/activity_login_peertube.xml @@ -18,6 +18,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" + xmlns:tools="http://schemas.android.com/tools" android:gravity="center" android:orientation="vertical" android:padding="24dp"> @@ -73,6 +74,25 @@ android:singleLine="true" /> </com.google.android.material.textfield.TextInputLayout> + <com.google.android.material.textfield.TextInputLayout + android:id="@+id/login_otp_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:visibility="gone" + app:passwordToggleEnabled="true" + tools:visibility="visible"> + + <com.google.android.material.textfield.TextInputEditText + android:id="@+id/login_otp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/otp_message" + android:importantForAutofill="no" + android:inputType="numberPassword" + android:singleLine="true" /> + </com.google.android.material.textfield.TextInputLayout> + <com.google.android.material.button.MaterialButton android:id="@+id/login_button" android:layout_width="wrap_content" @@ -81,6 +101,6 @@ android:text="@string/login" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/login_passwd_container" /> + app:layout_constraintTop_toBottomOf="@id/login_otp_container" /> </androidx.appcompat.widget.LinearLayoutCompat>
\ No newline at end of file |