Skip to content

Commit

Permalink
update the updated user record, not an old copy, to avoid losing emai…
Browse files Browse the repository at this point in the history
…l addresses
  • Loading branch information
beerriot committed Aug 19, 2010
1 parent 6b4c066 commit 58e0454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wriaki/src/user_resource.erl
Expand Up @@ -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;
Expand Down

0 comments on commit 58e0454

Please sign in to comment.