Merge pull request #3927 from vector-im/yostyle/password_matrix_error

Add password matrix errors
This commit is contained in:
Benoit Marty 2021-09-01 11:06:34 +02:00 committed by GitHub
commit 0a26547cb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

1
changelog.d/3927.feature Normal file
View file

@ -0,0 +1 @@
Add password errors in the matrix SDK

View file

@ -182,6 +182,24 @@ data class MatrixError(
/** (Not documented yet) */
const val M_WEAK_PASSWORD = "M_WEAK_PASSWORD"
/** The provided password's length is shorter than the minimum length required by the server. */
const val M_PASSWORD_TOO_SHORT = "M_PASSWORD_TOO_SHORT"
/** The password doesn't contain any digit but the server requires at least one. */
const val M_PASSWORD_NO_DIGIT = "M_PASSWORD_NO_DIGIT"
/** The password doesn't contain any uppercase letter but the server requires at least one. */
const val M_PASSWORD_NO_UPPERCASE = "M_PASSWORD_NO_UPPERCASE"
/** The password doesn't contain any lowercase letter but the server requires at least one. */
const val M_PASSWORD_NO_LOWERCASE = "M_PASSWORD_NO_LOWERCASE"
/** The password doesn't contain any symbol but the server requires at least one. */
const val M_PASSWORD_NO_SYMBOL = "M_PASSWORD_NO_SYMBOL"
/** The password was found in a dictionary, and is not acceptable. */
const val M_PASSWORD_IN_DICTIONARY = "M_PASSWORD_IN_DICTIONARY"
const val M_TERMS_NOT_SIGNED = "M_TERMS_NOT_SIGNED"
// For identity service