Comment_SecurityToken
class Comment_SecurityToken (View source)
Provides the ability to generate cryptographically secure tokens for comment moderation
Methods
Details
        
                            
    __construct(Comment $comment)
        
    
    No description
        
                    protected        string
    getToken(string $salt)
        
    
    Generate the token for the given salt and current secret
        
                    protected        string
    memberSalt(string $salt, Member $member)
        
    
    Get the member-specific salt.
The reason for making the salt specific to a user is that it cannot be "passed in" via a querystring, requiring the same user to be present at both the link generation and the controller action.
        
                            string
    addToUrl(string $url, Member $member)
        
    
    No description
        
                            bool
    checkRequest(SS_HTTPRequest $request)
        
    
    No description
        
                    protected        string
    generate(int $length = null)
        
    
    Generates new random key