We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8484ac commit 60c0b22Copy full SHA for 60c0b22
1 file changed
conn.go
@@ -35,6 +35,14 @@ type Conn struct {
35
appendData bool
36
}
37
38
+func (conn *Conn) LoginUser() string {
39
+ return conn.user
40
+}
41
+
42
+func (conn *Conn) IsLogin() bool {
43
+ return len(conn.user) > 0
44
45
46
// returns a random 20 char string that can be used as a unique session ID
47
func newSessionId() string {
48
hash := sha256.New()
0 commit comments