diff options
Diffstat (limited to 'src/autotype/AutoType.cpp')
-rw-r--r-- | src/autotype/AutoType.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/autotype/AutoType.cpp b/src/autotype/AutoType.cpp index 1d96377f5..12367fe95 100644 --- a/src/autotype/AutoType.cpp +++ b/src/autotype/AutoType.cpp @@ -518,6 +518,14 @@ QList<AutoTypeAction*> AutoType::createActionFromTemplate(const QString& tmpl, c else if (tmplName.compare("clearfield",Qt::CaseInsensitive)==0) { list.append(new AutoTypeClearField()); } + else if (tmplName.compare("totp", Qt::CaseInsensitive) == 0) { + QString totp = entry->totp(); + if (!totp.isEmpty()) { + for (const QChar& ch : totp) { + list.append(new AutoTypeChar(ch)); + } + } + } if (!list.isEmpty()) { return list; |