نسخ من khaledmahfouz5/Maqtaa
Move Git hook logic to Opengist (#213)
هذا الالتزام موجود في:
@@ -19,7 +19,7 @@ type SSHKey struct {
|
||||
User User `validate:"-" `
|
||||
}
|
||||
|
||||
func (sshKey *SSHKey) BeforeCreate(tx *gorm.DB) error {
|
||||
func (sshKey *SSHKey) BeforeCreate(*gorm.DB) error {
|
||||
pubKey, _, _, _, err := ssh.ParseAuthorizedKey([]byte(sshKey.Content))
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم