Skip to content

Instantly share code, notes, and snippets.

@hissy
Created July 19, 2017 07:03
Show Gist options
  • Save hissy/376d46e701b55dedfa06deddd24ac801 to your computer and use it in GitHub Desktop.
Save hissy/376d46e701b55dedfa06deddd24ac801 to your computer and use it in GitHub Desktop.
[concrete5][V8] Update user's password programmatically
<?php
Route::register('/change-password', function() {
$u = Concrete\Core\User\User::getByUserID(USER_SUPER_ID);
$ui = $u->getUserInfoObject();
$ui->changePassword('hogehoge');
die('Done.');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment