v0.2.1, minor fixes
This commit is contained in:
1 parent
16e81dee25
commit
6c0825f512
4 files changed
+9
-6
No files matched your search
@@ -65,7 +65,6 @@ class Registration(
|
||||
inline suspend fun <reified T> register(
|
||||
login: String,
|
||||
password: String,
|
||||
derivationParams: PasswordDerivationParams = PasswordDerivationParams(rounds = pbkdfRounds),
|
||||
extraData: T? = null,
|
||||
): Result = registerWithData(login, password, extraData?.let { BossEncoder.encode(it) })
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@ class SuperloginClient<D, S : WithAdapter>(
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val applicationData: D?
|
||||
get() = (state.value as? LoginState.LoggedIn<D>)?.loginData?.data
|
||||
|
||||
@@ -356,7 +357,7 @@ class SuperloginClient<D, S : WithAdapter>(
|
||||
val (id, key) = RestoreKey.parse(secret)
|
||||
val packedACO = invoke(serverApi.slRequestACOBySecretId, id)
|
||||
AccessControlObject.unpackWithKey<SuperloginRestoreAccessPayload>(packedACO, key)?.let {
|
||||
changePasswordWithACO(it, newPassword)
|
||||
changePasswordWithACO(it, newPassword, params, loginKeyStrength)
|
||||
clientState
|
||||
}
|
||||
} catch (x: RestoreKey.InvalidSecretException) {
|
||||
|
||||
Reference in new issue
Block a user