Skip to content

Commit 4922062

Browse files
authored
Merge pull request hestiacp#1617 from trajche/Roundcube-ubuntu-change-password
Fixing the change password for Roundcube to work with Ubuntu
2 parents ee03eff + 6b2fafc commit 4922062

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

install/ubuntu/16.04/roundcube/vesta.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
* @version 1.0
77
* @author Serghey Rodin <skid@vestacp.com>
88
*/
9-
10-
function password_save($curpass, $passwd)
9+
class rcube_vesta_password
10+
{
11+
function save($curpass, $passwd)
1112
{
1213
$rcmail = rcmail::get_instance();
1314
$vesta_host = $rcmail->config->get('password_vesta_host');
@@ -69,3 +70,4 @@ function password_save($curpass, $passwd)
6970
}
7071

7172
}
73+
}

install/ubuntu/16.10/roundcube/vesta.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* @version 1.0
77
* @author Serghey Rodin <skid@vestacp.com>
88
*/
9-
10-
function password_save($curpass, $passwd)
9+
class rcube_vesta_password {
10+
function save($curpass, $passwd)
1111
{
1212
$rcmail = rcmail::get_instance();
1313
$vesta_host = $rcmail->config->get('password_vesta_host');
@@ -69,3 +69,4 @@ function password_save($curpass, $passwd)
6969
}
7070

7171
}
72+
}

install/ubuntu/17.04/roundcube/vesta.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
* @version 1.0
77
* @author Serghey Rodin <skid@vestacp.com>
88
*/
9-
10-
function password_save($curpass, $passwd)
9+
class rcube_vesta_password
10+
{
11+
function save($curpass, $passwd)
1112
{
1213
$rcmail = rcmail::get_instance();
1314
$vesta_host = $rcmail->config->get('password_vesta_host');
@@ -69,3 +70,4 @@ function password_save($curpass, $passwd)
6970
}
7071

7172
}
73+
}

install/ubuntu/17.10/roundcube/vesta.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* @version 1.0
77
* @author Serghey Rodin <skid@vestacp.com>
88
*/
9-
10-
function password_save($curpass, $passwd)
9+
class rcube_vesta_password {
10+
function save($curpass, $passwd)
1111
{
1212
$rcmail = rcmail::get_instance();
1313
$vesta_host = $rcmail->config->get('password_vesta_host');
@@ -69,3 +69,4 @@ function password_save($curpass, $passwd)
6969
}
7070

7171
}
72+
}

install/ubuntu/18.04/roundcube/vesta.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* @version 1.0
77
* @author Serghey Rodin <skid@vestacp.com>
88
*/
9-
10-
function password_save($curpass, $passwd)
9+
class rcube_vesta_password {
10+
function save($curpass, $passwd)
1111
{
1212
$rcmail = rcmail::get_instance();
1313
$vesta_host = $rcmail->config->get('password_vesta_host');
@@ -69,3 +69,4 @@ function password_save($curpass, $passwd)
6969
}
7070

7171
}
72+
}

0 commit comments

Comments
 (0)