snippets star schaufler.ch

ProcessWire Passwort vergessen

<?php
//bestehender User
 $u = $users->get("admin"); //Dein Usernamen
 $u->pass = "passwort";
 $u->save();

//neuer Supperuser
 $u = new User();
 $u->name = "DeinName";
 $u->pass = "DeinPasswort";
 $u->addRole("superuser");
 $u->save();

?>
Tags: php, processwire von Andy 27-02-2014