Skip to content

Instantly share code, notes, and snippets.

@Hotfirenet
Created August 26, 2019 14:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Hotfirenet/9fe58b0c62f641339eccded0ab765fd9 to your computer and use it in GitHub Desktop.
<?php
require_once dirname(__FILE__) . 'core/php/core.inc.php';
$user = user::byLogin('MonLogin');
$user->setPassword(sha1('monMDP'));
$user->save();
print_r($user);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment