ChangePasswordScreenViewModel

class ChangePasswordScreenViewModel(changeUserPassword: ChangeUserPassword, validateUserPassword: ValidateUserPassword, router: Router) : ViewModel

Constructors

Link copied to clipboard
constructor(changeUserPassword: ChangeUserPassword, validateUserPassword: ValidateUserPassword, router: Router)

Functions

Link copied to clipboard
Link copied to clipboard
fun goBack()

Goes back to the previous screen

Link copied to clipboard
fun setCurrentPassword(currentPassword: String)

Sets the current password (currentPassword) used by the user to allow the change of password with the submit method

Link copied to clipboard
fun setNewPassword(newPassword: String)

Sets the new password (newPassword) wanted by the user to allow the change of password with the submit method

Link copied to clipboard
fun submit()

Submits the change password form using the current user password and the new password provided with setCurrentPassword and setNewPassword.

Properties

Link copied to clipboard
val alertState: StateFlow<AppAlertState>

Current state of UI alerts

Link copied to clipboard

Current state of the UI