Skip to content

Instantly share code, notes, and snippets.

@introwit
Last active October 11, 2016 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save introwit/e859f2b430d570b2c7a552dea7c75532 to your computer and use it in GitHub Desktop.
Save introwit/e859f2b430d570b2c7a552dea7c75532 to your computer and use it in GitHub Desktop.
Email Verification blog - 6
<?php
// Set the verified status to true and make the email token null
public function verified()
{
$this->verified = 1;
$this->email_token = null;
$this->save();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment