diff options
-rw-r--r-- | app/models/concerns/token_authenticatable_strategies/encrypted.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/token_authenticatable_strategies/encrypted.rb b/app/models/concerns/token_authenticatable_strategies/encrypted.rb index c23d78b050a..ab64dfca820 100644 --- a/app/models/concerns/token_authenticatable_strategies/encrypted.rb +++ b/app/models/concerns/token_authenticatable_strategies/encrypted.rb @@ -46,7 +46,7 @@ module TokenAuthenticatableStrategies raise ArgumentError unless token.present? instance[encrypted_field] = Gitlab::CryptoHelper.aes256_gcm_encrypt(token) - fallback_strategy.set_token(instance, nil) if fallback? + instance[token_field] = nil if fallback? token end |