Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update the updated user record, not an old copy, to avoid losing emai…

…l addresses
  • Loading branch information...
commit 58e04549769ac6231ac6cd8eb16597f0c7e86a16 1 parent 6b4c066
@beerriot beerriot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  apps/wriaki/src/user_resource.erl
View
2  apps/wriaki/src/user_resource.erl
@@ -125,7 +125,7 @@ accept_form(RD, Ctx=#ctx{user=User, client=C}) ->
end,
User2 = case proplists:get_value("bio", ReqProps) of
undefined -> User1;
- Bio -> wuser:set_bio(User, list_to_binary(Bio))
+ Bio -> wuser:set_bio(User1, list_to_binary(Bio))
end,
User3 = case proplists:get_value("password", ReqProps) of
undefined -> User2;
Please sign in to comment.
Something went wrong with that request. Please try again.