mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
Make the passwordHash nullable on the organizationResetPasswordEnroll API (#1247)
This commit is contained in:
parent
92e39f25c1
commit
05d1607024
3 changed files with 5 additions and 4 deletions
|
@ -6,11 +6,12 @@ import kotlinx.serialization.Serializable
|
||||||
/**
|
/**
|
||||||
* Request body object when enrolling a user in reset password functionality for this organization.
|
* 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.
|
* @param resetPasswordKey The key used for password reset.
|
||||||
*/
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class OrganizationResetPasswordEnrollRequestJson(
|
data class OrganizationResetPasswordEnrollRequestJson(
|
||||||
@SerialName("masterPasswordHash") val passwordHash: String,
|
@SerialName("masterPasswordHash") val passwordHash: String?,
|
||||||
@SerialName("resetPasswordKey") val resetPasswordKey: String,
|
@SerialName("resetPasswordKey") val resetPasswordKey: String,
|
||||||
)
|
)
|
||||||
|
|
|
@ -14,7 +14,7 @@ interface OrganizationService {
|
||||||
suspend fun organizationResetPasswordEnroll(
|
suspend fun organizationResetPasswordEnroll(
|
||||||
organizationId: String,
|
organizationId: String,
|
||||||
userId: String,
|
userId: String,
|
||||||
passwordHash: String,
|
passwordHash: String?,
|
||||||
resetPasswordKey: String,
|
resetPasswordKey: String,
|
||||||
): Result<Unit>
|
): Result<Unit>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class OrganizationServiceImpl(
|
||||||
override suspend fun organizationResetPasswordEnroll(
|
override suspend fun organizationResetPasswordEnroll(
|
||||||
organizationId: String,
|
organizationId: String,
|
||||||
userId: String,
|
userId: String,
|
||||||
passwordHash: String,
|
passwordHash: String?,
|
||||||
resetPasswordKey: String,
|
resetPasswordKey: String,
|
||||||
): Result<Unit> = authenticatedOrganizationApi
|
): Result<Unit> = authenticatedOrganizationApi
|
||||||
.organizationResetPasswordEnroll(
|
.organizationResetPasswordEnroll(
|
||||||
|
|
Loading…
Reference in a new issue