using consistent parameter name

This commit is contained in:
Adam Brown 2022-05-31 14:03:32 +01:00
parent 4f09160697
commit 7ac46a2fd1

View file

@ -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
)
}
}