src/models/User.php
public function getAndStoreEmailVerificationToken()
    {
        $token = $this->generateToken(6);
        
        $this->updateAttributes([
            'email_verification_token' => sha1($token),
            'email_verification_token_timestamp' => time(),
        ]);
        
        return $token;
    }
public function getAndStoreEmailVerificationToken()
    {
        $token = $this->generateToken(6);
        
        $this->updateAttributes([
            'email_verification_token' => sha1($token),
            'email_verification_token_timestamp' => time(),
        ]);
        
        return $token;
    }
public function getAndStoreEmailVerificationToken ( ) { $ token = $ this -> generateToken ( 6 ) ; $ this -> updateAttributes ( [ 'email_verification_token' => sha1 ( $ token ) , 'email_verification_token_timestamp' => time ( ) , ] ) ; return $ token ; }
Generate and save a email verification token and return the token.

@return mixed
@since 1.2.0
Generate and save a email verification token and return the token .