Stage 3.2

This commit is contained in:
2026-04-20 11:42:03 +03:00
parent 4224da1a22
commit 491b4ae179
8 changed files with 403 additions and 4 deletions

View File

@@ -81,8 +81,7 @@ delete(Id) ->
%% Внутренние функции
generate_id() ->
base64:encode(crypto:strong_rand_bytes(16)).
base64:encode(crypto:strong_rand_bytes(16), #{mode => urlsafe, padding => false}).
apply_updates(User, Updates) ->
lists:foldl(fun({Field, Value}, U) -> set_field(Field, Value, U) end, User, Updates).