diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-07-05 11:51:49 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-07-05 11:51:49 +0300 |
commit | ed1ee6061e6ab7844578e17aa70b17593e2c920f (patch) | |
tree | ada0a3b6e73b412f59e18b1c36e21a82b75ab7dc /src/mod_admin_extra.erl | |
parent | Move shaper to p1_utils repo (diff) |
Move move randoms module to p1_utils repo
Diffstat (limited to 'src/mod_admin_extra.erl')
-rw-r--r-- | src/mod_admin_extra.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 4eeaa32f..2deb5525 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -974,7 +974,7 @@ build_random_password(Reason) -> {{Year, Month, Day}, {Hour, Minute, Second}} = calendar:universal_time(), Date = str:format("~4..0B~2..0B~2..0BT~2..0B:~2..0B:~2..0B", [Year, Month, Day, Hour, Minute, Second]), - RandomString = randoms:get_string(), + RandomString = p1_rand:get_string(), <<"BANNED_ACCOUNT--", Date/binary, "--", RandomString/binary, "--", Reason/binary>>. set_password_auth(User, Server, Password) -> @@ -1515,7 +1515,7 @@ send_message(Type, From, To, Subject, Body) -> build_packet(Type, Subject, Body) -> #message{type = misc:binary_to_atom(Type), body = xmpp:mk_text(Body), - id = randoms:get_string(), + id = p1_rand:get_string(), subject = xmpp:mk_text(Subject)}. send_stanza(FromString, ToString, Stanza) -> |