Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change --pw-stdin to use getPassword() #1686

Merged
merged 1 commit into from
Mar 9, 2018

Conversation

a-dma
Copy link
Contributor

@a-dma a-dma commented Mar 8, 2018

Make --pw-stdin use getPassword() instead of readLine()

Description

A minor change to use the getPassword() function from CLI.
I've also updated the translation files and I'd like a thumbs up on that.

Motivation and context

Fixes #1673

How has this been tested?

Manual testing plus make test

Screenshots (if appropriate):

Types of changes

  • ✅ Bug fix (non-breaking change which fixes an issue)

Checklist:

  • ✅ I have read the CONTRIBUTING document. [REQUIRED]
  • ✅ My code follows the code style of this project. [REQUIRED]
  • ✅ All new and existing tests passed. [REQUIRED]
  • ✅ I have compiled and verified my code with -DWITH_ASAN=ON. [REQUIRED]

Copy link
Member

@phoerious phoerious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Two things I need you to change.

@@ -4094,5 +4094,9 @@ Please unlock the selected database or choose another one which is unlocked.</so
<source>Parent window handle</source>
<translation>زر النافذة الأم</translation>
</message>
<message>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also updated the translation files and I'd like a thumbs up on that.

Please revert that. We will update translations before the release. There is no point in pulling them in now. They just convolute the PR.

src/main.cpp Outdated
@@ -148,7 +150,9 @@ int main(int argc, char** argv)
// we always need consume a line of STDIN if --pw-stdin is set to clear out the
// buffer for native messaging, even if the specified file does not exist
static QTextStream in(stdin, QIODevice::ReadOnly);
password = in.readLine();
static QTextStream out(stdout, QIODevice::WriteOnly);
out << QCoreApplication::translate("Main", "Database password") << QString(": ") << flush;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The colon should be part of the translation string.

@phoerious phoerious added this to the v2.3.2 milestone Mar 8, 2018
@phoerious
Copy link
Member

Also please rebase against release/2.3.2.

@a-dma a-dma changed the base branch from develop to release/2.3.2 March 9, 2018 08:41
@a-dma
Copy link
Contributor Author

a-dma commented Mar 9, 2018

Updated and rebased

Copy link
Member

@phoerious phoerious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@phoerious phoerious merged commit f164847 into keepassxreboot:release/2.3.2 Mar 9, 2018
droidmonkey added a commit that referenced this pull request May 8, 2018
- Enable high entropy ASLR on Windows [#1747]
- Enhance favicon fetching [#1786]
- Fix crash on Windows due to autotype [#1691]
- Fix dark tray icon changing all icons [#1680]
- Fix --pw-stdin not using getPassword function [#1686]
- Fix placeholders being resolved in notes [#1907]
- Enable auto-type start delay to be configurable [#1908]
- Browser: Fix native messaging reply size [#1719]
- Browser: Increase maximum buffer size [#1720]
- Browser: Enhance usability and functionality [#1810, #1822, #1830, #1884, #1906]
- SSH Agent: Parse aes-256-cbc/ctr keys [#1682]
- SSH Agent: Enhance usability and functionality [#1677, #1679, #1681, #1787]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants