mirror of
https://github.com/bitwarden/android.git
synced 2026-05-12 23:01:13 -05:00
Make the passwordHash nullable on the organizationResetPasswordEnroll API (#1247)
This commit is contained in:
@@ -6,11 +6,12 @@ import kotlinx.serialization.Serializable
|
||||
/**
|
||||
* Request body object when enrolling a user in reset password functionality for this organization.
|
||||
*
|
||||
* @param passwordHash The hash of this user's password.
|
||||
* @param passwordHash The hash of this user's password. This is not required if the user does not
|
||||
* have a password.
|
||||
* @param resetPasswordKey The key used for password reset.
|
||||
*/
|
||||
@Serializable
|
||||
data class OrganizationResetPasswordEnrollRequestJson(
|
||||
@SerialName("masterPasswordHash") val passwordHash: String,
|
||||
@SerialName("masterPasswordHash") val passwordHash: String?,
|
||||
@SerialName("resetPasswordKey") val resetPasswordKey: String,
|
||||
)
|
||||
|
||||
@@ -14,7 +14,7 @@ interface OrganizationService {
|
||||
suspend fun organizationResetPasswordEnroll(
|
||||
organizationId: String,
|
||||
userId: String,
|
||||
passwordHash: String,
|
||||
passwordHash: String?,
|
||||
resetPasswordKey: String,
|
||||
): Result<Unit>
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class OrganizationServiceImpl(
|
||||
override suspend fun organizationResetPasswordEnroll(
|
||||
organizationId: String,
|
||||
userId: String,
|
||||
passwordHash: String,
|
||||
passwordHash: String?,
|
||||
resetPasswordKey: String,
|
||||
): Result<Unit> = authenticatedOrganizationApi
|
||||
.organizationResetPasswordEnroll(
|
||||
|
||||
Reference in New Issue
Block a user