mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Fixed semantic meaning of requireScopeParam() and requireStateParam() by changing their default value to true
				
					
				
			This commit is contained in:
		@@ -271,7 +271,7 @@ class Authorization
 | 
			
		||||
     * @param  boolean $require
 | 
			
		||||
     * @return void
 | 
			
		||||
     */
 | 
			
		||||
    public function requireScopeParam($require = false)
 | 
			
		||||
    public function requireScopeParam($require = true)
 | 
			
		||||
    {
 | 
			
		||||
        $this->requireScopeParam = $require;
 | 
			
		||||
    }
 | 
			
		||||
@@ -318,7 +318,7 @@ class Authorization
 | 
			
		||||
     * @param  boolean $require
 | 
			
		||||
     * @return void
 | 
			
		||||
     */
 | 
			
		||||
    public function requireStateParam($require = false)
 | 
			
		||||
    public function requireStateParam($require = true)
 | 
			
		||||
    {
 | 
			
		||||
        $this->requireStateParam = $require;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user