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.SetRoot(pages, true)
player := newCharacter("you", "TODO")
player := newCharacter("you", "it's you. how are you?")
su := &models.TownSignup{ID: -1}

View File

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

View File

@ -19,7 +19,6 @@ import (
// TODO mark on user table what signup id led to the account for forensics
// TODO add logging like the signup tool has
// 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(?))
//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)
}
// TODO burn invite
return nil
}
@ -215,7 +212,6 @@ func keyfileText(data newUserData) string {
}
func main() {
// TODO friendlier error handling
err := _main()
if err != nil {
fmt.Fprintln(os.Stderr, err)