mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Comment changes
This commit is contained in:
		@@ -239,7 +239,8 @@ class Server
 | 
			
		||||
    {
 | 
			
		||||
        $authCode = $this->generateCode();
 | 
			
		||||
 | 
			
		||||
        // Update an existing session with the new code
 | 
			
		||||
        // If an access token exists then update the existing session with the 
 | 
			
		||||
        // new authorisation code otherwise create a new session
 | 
			
		||||
        if ($access_token !== null) {
 | 
			
		||||
 | 
			
		||||
            $this->db->updateSession(
 | 
			
		||||
@@ -251,7 +252,7 @@ class Server
 | 
			
		||||
                'request'
 | 
			
		||||
            );
 | 
			
		||||
        
 | 
			
		||||
        } else { // Create a new oauth session
 | 
			
		||||
        } else {
 | 
			
		||||
 | 
			
		||||
            // Delete any existing sessions just to be sure
 | 
			
		||||
            $this->db->deleteSession($clientId, $type, $typeId);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user