Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
export RegistrationInfo values
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 14, 2021
1 parent 92fd984 commit f17f062
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Config struct {
Name string `yaml:"name"` // The username
UnidentifiedAccessKey []byte `yaml:"unidentifiedAccessKey"` // The access key for unidentified users
Certificate []byte `yaml:"certificate"` // The access key for unidentified users
CrayfishSupport bool `yaml:"cryfishSupport"` // weather the client uses cryfish or not
CrayfishSupport bool `yaml:"crayfishSupport"` // weather the client uses crayfish or not
}

// AccountCapabilities describes what functions axolotl supports
Expand Down
13 changes: 13 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,19 @@ type RegistrationInfo struct {
captchaToken string
}

func (r *RegistrationInfo) Password() string {
return r.password
}
func (r *RegistrationInfo) RegistrationID() uint32 {
return r.registrationID
}
func (r *RegistrationInfo) SignalingKey() []byte {
return r.signalingKey
}
func (r *RegistrationInfo) CaptchaToken() string {
return r.captchaToken
}

var registrationInfo RegistrationInfo

// Registration
Expand Down

0 comments on commit f17f062

Please sign in to comment.