pass is a reserved keyword in python, use password instead

This commit is contained in:
Nyall Dawson 2024-09-03 10:39:11 +10:00
parent 502ad84f83
commit be5877d517
3 changed files with 12 additions and 12 deletions

View File

@ -122,7 +122,7 @@ Main call to initially set or continually check master password is set
:param verify: Whether password's hash was saved in authentication database
%End
bool setMasterPassword( const QString &pass, bool verify = false );
bool setMasterPassword( const QString &password, bool verify = false );
%Docstring
Overloaded call to reset master password or set it initially without user interaction
@ -130,7 +130,7 @@ Overloaded call to reset master password or set it initially without user intera
Only use this in trusted reset functions, unit tests or user/app setup scripts!
:param pass: Password to use
:param password: Password to use
:param verify: Whether password's hash was saved in authentication database
%End
@ -164,11 +164,11 @@ Clear supplied master password
This will not necessarily clear authenticated connections cached in network connection managers
%End
bool masterPasswordSame( const QString &pass ) const;
bool masterPasswordSame( const QString &password ) const;
%Docstring
Check whether supplied password is the same as the one already set
:param pass: Password to verify
:param password: Password to verify
%End
bool resetMasterPassword( const QString &newpass, const QString &oldpass, bool keepbackup, QString *backuppath /In,Out/ = 0 );

View File

@ -122,7 +122,7 @@ Main call to initially set or continually check master password is set
:param verify: Whether password's hash was saved in authentication database
%End
bool setMasterPassword( const QString &pass, bool verify = false );
bool setMasterPassword( const QString &password, bool verify = false );
%Docstring
Overloaded call to reset master password or set it initially without user interaction
@ -130,7 +130,7 @@ Overloaded call to reset master password or set it initially without user intera
Only use this in trusted reset functions, unit tests or user/app setup scripts!
:param pass: Password to use
:param password: Password to use
:param verify: Whether password's hash was saved in authentication database
%End
@ -164,11 +164,11 @@ Clear supplied master password
This will not necessarily clear authenticated connections cached in network connection managers
%End
bool masterPasswordSame( const QString &pass ) const;
bool masterPasswordSame( const QString &password ) const;
%Docstring
Check whether supplied password is the same as the one already set
:param pass: Password to verify
:param password: Password to verify
%End
bool resetMasterPassword( const QString &newpass, const QString &oldpass, bool keepbackup, QString *backuppath /In,Out/ = 0 );

View File

@ -146,10 +146,10 @@ class CORE_EXPORT QgsAuthManager : public QObject
/**
* Overloaded call to reset master password or set it initially without user interaction
* \note Only use this in trusted reset functions, unit tests or user/app setup scripts!
* \param pass Password to use
* \param password Password to use
* \param verify Whether password's hash was saved in authentication database
*/
bool setMasterPassword( const QString &pass, bool verify = false );
bool setMasterPassword( const QString &password, bool verify = false );
/**
* Verify the supplied master password against any existing hash in authentication database
@ -172,9 +172,9 @@ class CORE_EXPORT QgsAuthManager : public QObject
/**
* Check whether supplied password is the same as the one already set
* \param pass Password to verify
* \param password Password to verify
*/
bool masterPasswordSame( const QString &pass ) const;
bool masterPasswordSame( const QString &password ) const;
/**
* Reset the master password to a new one, then re-encrypt all previous