Move Core\Session::remove() to DI::session()->remove()
This commit is contained in:
		
					parent
					
						
							
								315ed3ed22
							
						
					
				
			
			
				commit
				
					
						a2eb0c7378
					
				
			
		
					 2 changed files with 1 additions and 7 deletions
				
			
		|  | @ -22,7 +22,6 @@ | |||
| namespace Friendica\Module\Settings\TwoFactor; | ||||
| 
 | ||||
| use Friendica\Core\Renderer; | ||||
| use Friendica\Core\Session; | ||||
| use Friendica\DI; | ||||
| use Friendica\Network\HTTPException\FoundException; | ||||
| use Friendica\Security\TwoFactor\Model\AppSpecificPassword; | ||||
|  | @ -64,7 +63,7 @@ class Index extends BaseSettings | |||
| 						RecoveryCode::deleteForUser(local_user()); | ||||
| 						DI::pConfig()->delete(local_user(), '2fa', 'secret'); | ||||
| 						DI::pConfig()->delete(local_user(), '2fa', 'verified'); | ||||
| 						Session::remove('2fa'); | ||||
| 						DI::session()->remove('2fa'); | ||||
| 
 | ||||
| 						DI::sysmsg()->addInfo(DI::l10n()->t('Two-factor authentication successfully disabled.')); | ||||
| 						DI::baseUrl()->redirect('settings/2fa'); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue