We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e307dad commit 974ec90Copy full SHA for 974ec90
auth/auth.go
@@ -76,6 +76,12 @@ func (role *RoleIdentity) Restore(ctx *RestoreCtx) error {
76
return nil
77
}
78
79
+// String converts UserIdentity to the format user@host.
80
+func (role *RoleIdentity) String() string {
81
+ // TODO: Escape username and hostname.
82
+ return fmt.Sprintf("%s@%s", role.Username, role.Hostname)
83
+}
84
+
85
// CheckScrambledPassword check scrambled password received from client.
86
// The new authentication is performed in following manner:
87
// SERVER: public_seed=create_random_string()
0 commit comments