Compare commits
No commits in common. "bc90015a33a50b31533d1b9815680d7672a21cda" and "dd8e503b61cc91b9603a711db24156d72cc85510" have entirely different histories.
bc90015a33
...
dd8e503b61
2 changed files with 2 additions and 9 deletions
|
@ -1,7 +0,0 @@
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
end_of_line = lf
|
|
||||||
insert_final_newline = true
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 4
|
|
4
main.go
4
main.go
|
@ -223,7 +223,7 @@ func main() {
|
||||||
code := controller.GenerateTOTP(totp.Secret, 0)
|
code := controller.GenerateTOTP(totp.Secret, 0)
|
||||||
fmt.Printf("%s\n", code)
|
fmt.Printf("%s\n", code)
|
||||||
return
|
return
|
||||||
|
|
||||||
case "cleanTOTP":
|
case "cleanTOTP":
|
||||||
err := controller.DeleteUnconfirmedTOTPs(app.DB)
|
err := controller.DeleteUnconfirmedTOTPs(app.DB)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -346,7 +346,7 @@ func main() {
|
||||||
if !strings.HasPrefix(res, "y") {
|
if !strings.HasPrefix(res, "y") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
err = controller.DeleteAccount(app.DB, account.ID)
|
err = controller.DeleteAccount(app.DB, account.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "FATAL: Failed to delete account: %v\n", err)
|
fmt.Fprintf(os.Stderr, "FATAL: Failed to delete account: %v\n", err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue