summaryrefslogtreecommitdiffstats
path: root/cmd/admin.go
diff options
context:
space:
mode:
authorShashvat Kedia <shashvat51@gmail.com>2020-01-08 05:11:16 +0530
committerzeripath <art27@cantab.net>2020-01-07 23:41:16 +0000
commit1e9b3d4743dc3b1726470a2316b7608427ec5635 (patch)
tree7b62de51752c48046da654a02bf5e29f65345803 /cmd/admin.go
parentb9309e52f0b08a554107d888029d62f9b7904ca0 (diff)
downloadgitea-1e9b3d4743dc3b1726470a2316b7608427ec5635.tar.gz
gitea-1e9b3d4743dc3b1726470a2316b7608427ec5635.zip
Fix #9530: admin auth list make readable and admin auth delete bug fix (#9628)
Diffstat (limited to 'cmd/admin.go')
-rw-r--r--cmd/admin.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/admin.go b/cmd/admin.go
index cd083a29e8..0b9f6eac44 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -155,6 +155,7 @@ var (
microcmdAuthDelete = cli.Command{
Name: "delete",
Usage: "Delete specific auth source",
+ Flags: []cli.Flag{idFlag},
Action: runDeleteAuth,
}
@@ -533,9 +534,9 @@ func runListAuth(c *cli.Context) error {
// loop through each source and print
w := tabwriter.NewWriter(os.Stdout, 0, 0, 1, ' ', tabwriter.AlignRight)
- fmt.Fprintf(w, "ID\tName\tType\tEnabled")
+ fmt.Fprintf(w, "ID\tName\tType\tEnabled\n")
for _, source := range loginSources {
- fmt.Fprintf(w, "%d\t%s\t%s\t%t", source.ID, source.Name, models.LoginNames[source.Type], source.IsActived)
+ fmt.Fprintf(w, "%d\t%s\t%s\t%t\n", source.ID, source.Name, models.LoginNames[source.Type], source.IsActived)
}
w.Flush()