INNER CODE UNIT · Go

copyUser

GoMudEngine/GoMud · cmd/reset-admin-pw/main.go:63

			copyUser := *u
			adminUser = &copyUser
			return false
		}
		return true
	})

	if adminUser == nil {
		return nil, errors.New("no offline admin user record found")
	}

	return adminUser, nil
}

func promptForPassword(stdin *os.File, stdout *os.File, fd int) (string, error) {
	var reader *bufio.Reader
	if !terminal.IsTerminal(fd) {
		reader = bufio.NewReader(stdin)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…