Commits

Anonymous committed 4efcf27

update the updated user record, not an old copy, to avoid losing email addresses

  • Participants
  • Parent commits 3e852e1

Comments (0)

Files changed (1)

apps/wriaki/src/user_resource.erl

             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;