cleanup some TODOs

pull/1/head
vilmibm 2023-03-09 06:42:18 +00:00
parent b789865943
commit 8fb6208dbf
3 changed files with 1 additions and 7 deletions

View File

@ -164,7 +164,7 @@ func _main(l *log.Logger, db *sql.DB) error {
app := tview.NewApplication() app := tview.NewApplication()
app.SetRoot(pages, true) app.SetRoot(pages, true)
player := newCharacter("you", "TODO") player := newCharacter("you", "it's you. how are you?")
su := &models.TownSignup{ID: -1} su := &models.TownSignup{ID: -1}

View File

@ -59,8 +59,6 @@ type asker struct {
} }
func (a *asker) Ask() (err error) { func (a *asker) Ask() (err error) {
// TODO somehow un and email getting set to "" but pubkey works fine?
if err = a.promptUsername(); err != nil { if err = a.promptUsername(); err != nil {
return err return err
} }

View File

@ -19,7 +19,6 @@ import (
// TODO mark on user table what signup id led to the account for forensics // TODO mark on user table what signup id led to the account for forensics
// TODO add logging like the signup tool has // TODO add logging like the signup tool has
// TODO consider merging adduser, usermod, and createkeyfile into single createuser helper to limit sudoers list // TODO consider merging adduser, usermod, and createkeyfile into single createuser helper to limit sudoers list
// TODO move magic key machine to static page
// TODO add alerts for new users (mailing list post, irc post, etc(?)) // TODO add alerts for new users (mailing list post, irc post, etc(?))
//go:embed welcome.txt //go:embed welcome.txt
@ -154,8 +153,6 @@ if you end up very stuck, you can email root@tilde.town .`, data.Username))
return fmt.Errorf("could not mark invite as used: %w", err) return fmt.Errorf("could not mark invite as used: %w", err)
} }
// TODO burn invite
return nil return nil
} }
@ -215,7 +212,6 @@ func keyfileText(data newUserData) string {
} }
func main() { func main() {
// TODO friendlier error handling
err := _main() err := _main()
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)