Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add password matrix errors #3927

Merged
merged 1 commit into from
Sep 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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