mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-23 14:22:20 +00:00
22 lines
461 B
Go
22 lines
461 B
Go
|
package bypass
|
||
|
|
||
|
// ByPass authentification backend
|
||
|
// By pass password check, open your streaming server to everyone!
|
||
|
type ByPass struct {
|
||
|
}
|
||
|
|
||
|
// Login always return success
|
||
|
func (a ByPass) Login(username string, password string) (bool, error) {
|
||
|
return true, nil
|
||
|
}
|
||
|
|
||
|
// Close has no connection to close
|
||
|
func (a ByPass) Close() {
|
||
|
}
|
||
|
|
||
|
// New instanciates a new Basic authentification backend
|
||
|
func New() (ByPass, error) {
|
||
|
backend := ByPass{}
|
||
|
return backend, nil
|
||
|
}
|