mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-07-12 16:58:33 +00:00
Update module github.com/msteinert/pam to v2 (forgejo) (#7186)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7186 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org> Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
This commit is contained in:
parent
91a791bfed
commit
3dc222e46c
3 changed files with 5 additions and 4 deletions
|
@ -8,7 +8,7 @@ package pam
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/msteinert/pam"
|
||||
"github.com/msteinert/pam/v2"
|
||||
)
|
||||
|
||||
// Supported is true when built with PAM
|
||||
|
@ -28,6 +28,7 @@ func Auth(serviceName, userName, passwd string) (string, error) {
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
defer t.End()
|
||||
|
||||
if err = t.Authenticate(0); err != nil {
|
||||
return "", err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue