mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
using consistent parameter name
This commit is contained in:
parent
4f09160697
commit
7ac46a2fd1
1 changed files with 2 additions and 2 deletions
|
@ -35,11 +35,11 @@ internal data class ChangePasswordParams(
|
|||
val logoutDevices: Boolean = true
|
||||
) {
|
||||
companion object {
|
||||
fun create(userId: String, oldPassword: String, newPassword: String, logoutDevices: Boolean): ChangePasswordParams {
|
||||
fun create(userId: String, oldPassword: String, newPassword: String, logoutAllDevices: Boolean): ChangePasswordParams {
|
||||
return ChangePasswordParams(
|
||||
auth = UserPasswordAuth(user = userId, password = oldPassword),
|
||||
newPassword = newPassword,
|
||||
logoutDevices = logoutDevices
|
||||
logoutDevices = logoutAllDevices
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue