mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38:49 +00:00
Use User::authenticate in addons
- dav - jappixmini - windowsphonepush
This commit is contained in:
parent
46e09b0544
commit
eadf7066e0
3 changed files with 9 additions and 27 deletions
|
@ -429,11 +429,7 @@ function jappixmini_settings_post(App $a, &$b)
|
|||
if ($encrypt) {
|
||||
// check that Jabber password was encrypted with correct Friendica password
|
||||
$friendica_password = trim($b['jappixmini-friendica-password']);
|
||||
$encrypted = hash('whirlpool',$friendica_password);
|
||||
$r = q("SELECT * FROM `user` WHERE `uid`=$uid AND `password`='%s'",
|
||||
dbesc($encrypted)
|
||||
);
|
||||
if (!count($r)) {
|
||||
if (!User::authenticate((int) $uid, $friendica_password)) {
|
||||
info("Wrong friendica password!");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue