mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
rename timestamp function #917
This commit is contained in:
parent
a189655f31
commit
5a85b0fb52
3 changed files with 17 additions and 5 deletions
|
@ -702,7 +702,7 @@ set_random_password(User, Server, Reason) ->
|
|||
set_password_auth(User, Server, NewPass).
|
||||
|
||||
build_random_password(Reason) ->
|
||||
Date = jlib:timestamp_to_iso(calendar:universal_time()),
|
||||
Date = jlib:timestamp_to_legacy(calendar:universal_time()),
|
||||
RandomString = randoms:get_string(),
|
||||
<<"BANNED_ACCOUNT--", Date/binary, "--", RandomString/binary, "--", Reason/binary>>.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue