aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-26 16:30:32 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-26 16:30:32 +0000
commitb2c8624c1069829f815ebfcbaa18d06a27dde34e (patch)
tree656ed5d5c6ecf2acdfd2412a6e3e5135c4c25cc6 /engine/lib/users.php
parent31c5b57b92b2b2442527cc601eab113e047b0e93 (diff)
downloadelgg-b2c8624c1069829f815ebfcbaa18d06a27dde34e.tar.gz
elgg-b2c8624c1069829f815ebfcbaa18d06a27dde34e.tar.bz2
Closes #16: Administration: Reset password functionality on user admin screen
http://trac.elgg.org/elgg/ticket/16 git-svn-id: https://code.elgg.org/elgg/trunk@1150 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index d8fc53f79..554ada22b 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -813,6 +813,17 @@
}
/**
+ * Simple function that will generate a random clear text password suitable for feeding into generate_user_password().
+ *
+ * @see generate_user_password
+ * @return string
+ */
+ function generate_random_cleartext_password()
+ {
+ return substr(md5(microtime()), 0, 8);
+ }
+
+ /**
* Generate a password for a user, currently uses MD5.
*
* Later may introduce salting etc.