chore(auth): rename toExportFormat
This commit is contained in:
parent
851c04f714
commit
3c793258a8
2 changed files with 3 additions and 3 deletions
|
@ -159,7 +159,7 @@ class Code {
|
|||
}
|
||||
}
|
||||
|
||||
String toExportFormat() {
|
||||
String toOTPAuthUrlFormat() {
|
||||
return jsonEncode(
|
||||
Uri.parse(
|
||||
"$rawData&codeDisplay="
|
||||
|
|
|
@ -97,14 +97,14 @@ class CodeStore {
|
|||
result = AddResult.updateCode;
|
||||
await _authenticatorService.updateEntry(
|
||||
code.generatedID!,
|
||||
code.toExportFormat(),
|
||||
code.toOTPAuthUrlFormat(),
|
||||
shouldSync,
|
||||
mode,
|
||||
);
|
||||
} else {
|
||||
result = AddResult.newCode;
|
||||
code.generatedID = await _authenticatorService.addEntry(
|
||||
code.toExportFormat(),
|
||||
code.toOTPAuthUrlFormat(),
|
||||
shouldSync,
|
||||
mode,
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue