]> BookStack Code Mirror - bookstack/blobdiff - app/Auth/SocialAccount.php
Fixed failing test after drawio default url change
[bookstack] / app / Auth / SocialAccount.php
index 804dbe6292973c16b7dc068ad00dd353c33fa48d..6cf0224a8d362a2ae6c8bf282f615ad1038e96ad 100644 (file)
@@ -1,14 +1,30 @@
-<?php namespace BookStack\Auth;
+<?php
 
+namespace BookStack\Auth;
+
+use BookStack\Interfaces\Loggable;
 use BookStack\Model;
 
-class SocialAccount extends Model
+/**
+ * Class SocialAccount.
+ *
+ * @property string $driver
+ * @property User   $user
+ */
+class SocialAccount extends Model implements Loggable
 {
-
     protected $fillable = ['user_id', 'driver', 'driver_id', 'timestamps'];
 
     public function user()
     {
         return $this->belongsTo(User::class);
     }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function logDescriptor(): string
+    {
+        return "{$this->driver}; {$this->user->logDescriptor()}";
+    }
 }