Fix crash on successful log in

This commit is contained in:
Emii Tatsuo 2020-11-27 18:36:24 -05:00
parent 6c3ae626e9
commit fa0d031ee8
Signed by: Emi
GPG key ID: 68FAB2E2E6DFC98B

View file

@ -177,7 +177,8 @@ impl NotSignedInUser {
}
}
user.add_certificate(self.certificate)?;
user.add_certificate(self.certificate.clone())?;
user.active_certificate = Some(self.certificate);
Ok(Some(user))
} else {
Ok(None)