Skip to content

Commit

Permalink
Merge pull request #3927 from vector-im/yostyle/password_matrix_error
Browse files Browse the repository at this point in the history
Add password matrix errors
  • Loading branch information
bmarty authored Sep 1, 2021
2 parents 32bad57 + d579670 commit 0a26547
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/3927.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add password errors in the matrix SDK
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a26547

Please sign in to comment.