Get the Primary Username saved to a wallet's datashard
()
| 1941 | |
| 1942 | // Get the Primary Username saved to a wallet's datashard |
| 1943 | func getPrimaryUsername() (err error) { |
| 1944 | u, err := GetEncryptedValue("settings", []byte("username")) |
| 1945 | if err != nil { |
| 1946 | session.Username = "" |
| 1947 | return |
| 1948 | } |
| 1949 | session.Username = string(u) |
| 1950 | return |
| 1951 | } |
| 1952 | |
| 1953 | // Start the Gnomon indexer |
| 1954 | func startGnomon() { |
no test coverage detected