liquid_feedback_frontend
annotate app/main/contact/_action/remove_member.lua @ 1494:3e9b0f1adec3
Removed token based CSRF protection (WebMCP uses SameSite cookies now)
| author | bsw |
|---|---|
| date | Mon Dec 09 15:54:57 2019 +0100 (2019-12-09) |
| parents | 768faea1096d |
| children |
| rev | line source |
|---|---|
| bsw/jbe@0 | 1 local member = app.session.member |
| bsw/jbe@0 | 2 local other_member = Member:by_id(param.get_id()) |
| bsw/jbe@0 | 3 |
| bsw/jbe@0 | 4 local contact = Contact:by_pk(member.id, other_member.id) |
| bsw/jbe@0 | 5 contact:destroy() |
| bsw/jbe@0 | 6 |
| bsw@3 | 7 --slot.put_into("notice", _"Member has been removed from your contacts") |