#!/usr/bin/env php
<?php
/*
- * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, 2009, Control Yourself, Inc.
+ * StatusNet - the distributed open-source microblogging tool
+ * Copyright (C) 2008, 2009, StatusNet, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
exit(1);
}
-$user = User::staticGet('nickname', $nickname);
+$user = User::getKV('nickname', $nickname);
if (!$user) {
print "No such user '$nickname'.\n";
$original = clone($user);
-$user->password = common_munge_password($password, $user->id);
+$user->password = common_munge_password($password, $user->getProfile());
if (!$user->update($original)) {
print "Error updating user '$nickname'.\n";