@@ 26-37 (lines=12) @@ | ||
23 | forward(REFERER); |
|
24 | } |
|
25 | ||
26 | if (execute_new_password_request($user_guid, $code, $password)) { |
|
27 | system_message(elgg_echo('user:password:success')); |
|
28 | ||
29 | try { |
|
30 | login(get_entity($user_guid)); |
|
31 | } catch (LoginException $e) { |
|
32 | register_error($e->getMessage()); |
|
33 | forward(REFERER); |
|
34 | } |
|
35 | } else { |
|
36 | register_error(elgg_echo('user:password:fail')); |
|
37 | } |
|
38 | ||
39 | forward(); |
|
40 |
@@ 11-21 (lines=11) @@ | ||
8 | $new_owner = get_entity(get_input('owner_guid')); |
|
9 | ||
10 | if($new_owner->getGUID() != $group->getOwnerGUID()){ |
|
11 | if($group->isMember($new_owner)){ |
|
12 | //transfer cover photo to new owner |
|
13 | gc_group_layout_transfer_coverphoto($group, $new_owner); |
|
14 | // transfer the group to the new owner |
|
15 | group_tools_transfer_group_ownership($group, $new_owner); |
|
16 | system_message(elgg_echo('member_selfdelete:gc:change:owner')); |
|
17 | forward(REFERER); |
|
18 | }else{ |
|
19 | register_error(elgg_echo('member_selfdelete:gc:change:not:member')); |
|
20 | forward(REFERER); |
|
21 | } |
|
22 | }else{ |
|
23 | register_error('member_selfdelete:gc:change:error'); |
|
24 | forward(REFERER); |