application/Controllers/ViewControllers/User.php
/**
     * Verification page
     * Check if verication was successful
     * 
     * @param string $token - Verification Token
     * @route
     */
Verification page
Check if verication was successful

@param string $token - Verification Token
@route
Verification page Check if verication was successful @param string $token - Verification Token @route
public function verifyEmail(string $token): void {
        $data['message'] = '';
        if($this->userModel->verifyByToken($token)) {
            Session::flash('email_verified', 'Email verified successfully. Login');
            Server::redirect('user/login');
        }   else {
            $data['message'] = "Invalid Request. Try Again";
        }
        $this->view('user/verify-email', $data);
    }
public function verifyEmail ( string $ token ) : void { $ data [ 'message' ] = '' ; if ( $ this -> userModel -> verifyByToken ( $ token ) ) { Session :: flash ( 'email_verified' , 'Email verified successfully. Login' ) ; Server :: redirect ( 'user/login' ) ; } else { $ data [ 'message' ] = " Invalid Request. Try Again " ; } $ this -> view ( 'user/verify-email' , $ data ) ; }
Verification page
 Check if verication was successful
Verification page Check if verication was successful