mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 07:28:28 +02:00
Update reset password api
This commit is contained in:
@@ -100,14 +100,18 @@ struct CheckResetPasswordParameters: DictionaryEncodable {
|
||||
let auth: AuthenticationParameters
|
||||
/// The new password
|
||||
let newPassword: String
|
||||
/// The sign out of all devices flag
|
||||
let signoutAllDevices: Bool
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case auth
|
||||
case newPassword = "new_password"
|
||||
case signoutAllDevices = "logout_devices"
|
||||
}
|
||||
|
||||
init(clientSecret: String, sessionID: String, newPassword: String) {
|
||||
init(clientSecret: String, sessionID: String, newPassword: String, signoutAllDevices: Bool) {
|
||||
self.auth = AuthenticationParameters.resetPasswordParameters(clientSecret: clientSecret, sessionID: sessionID)
|
||||
self.newPassword = newPassword
|
||||
self.signoutAllDevices = signoutAllDevices
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user