homed: remember the secret even when the for_state is FIXATING_FOR_ACQUIRE
Remember the secret if the for_state is FIXATING_FOR_ACTIVATION or FIXATING_FOR_ACQUIRE. This fixes login failures when logging in to an unfixated user.
This commit is contained in:
parent
346543d6f9
commit
3d3d6e10da
|
@ -1115,7 +1115,7 @@ static int home_fixate_internal(
|
|||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (for_state == HOME_FIXATING_FOR_ACTIVATION) {
|
||||
if (IN_SET(for_state, HOME_FIXATING_FOR_ACTIVATION, HOME_FIXATING_FOR_ACQUIRE)) {
|
||||
/* Remember the secret data, since we need it for the activation again, later on. */
|
||||
user_record_unref(h->secret);
|
||||
h->secret = user_record_ref(secret);
|
||||
|
|
Loading…
Reference in a new issue