summaryrefslogtreecommitdiffstats
path: root/src/realpass.cpp
diff options
context:
space:
mode:
authorEttore Dreucci <ettore.dreucci@gmail.com>2018-05-08 21:04:58 +0200
committerEttore Dreucci <ettore.dreucci@gmail.com>2018-05-09 12:13:49 +0200
commite40250b1adec6e1cab99a1d4b05c50d9e0a8d763 (patch)
tree7786e39e752041d7c00c46b98b4afec9be0ccc52 /src/realpass.cpp
parentff6c380775fcbc10e73a55238af9a7fa74f9e5b8 (diff)
OTP is shown and copied to clipboard automatically. If compiled on WIN and APPLE OTP button and options are hidden.
Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
Diffstat (limited to 'src/realpass.cpp')
-rw-r--r--src/realpass.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/realpass.cpp b/src/realpass.cpp
index 55d00993..f03e6023 100644
--- a/src/realpass.cpp
+++ b/src/realpass.cpp
@@ -44,8 +44,12 @@ void RealPass::Show(QString file) {
executePass(PASS_SHOW, {"show", file}, "", true);
}
-void RealPass::OtpShow(QString file) {
- executePass(PASS_OTP_SHOW, {"otp", "-c", file}, "", true);
+/**
+ * @brief RealPass::OtpGenerate pass otp
+ * @param file file containig OTP uri
+ */
+void RealPass::OtpGenerate(QString file) {
+ executePass(PASS_OTP_SHOW, {"otp", file}, "", true);
}