Skip to content
Advertisement

How to get user’s plain password in PDO class of Sabre DAV?

How can I get hold of the current logged-in user’s plaintext password in the following file of Sabre DAV library?

JavaScript
JavaScript

Advertisement

Answer

For Basic Authentication, the file is this:

baikalCoreFrameworksBaikalCorePDOBasicAuth.php

plain password is at the validateUserPass function and it can be stored at a global var (or in the session as mentioned in the comments of the question):

JavaScript

Then, at the baikalvendorsabredavlibCardDAVBackendPDO.php file, the value of the $ptp var can be retrieved using global $ptp;

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement