diff --git a/app/Models/User.php b/app/Models/User.php index 2e2ce30..3671c3a 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -63,6 +63,11 @@ class User extends Authenticatable implements MustVerifyEmail return $this->hasMany(Vote::class); } + public function deadlinesProgress() + { + return $this->hasMany(UserDeadline::class); + } + public function mustVerifyEmail(): bool { return $this instanceof MustVerifyEmail && !$this->hasVerifiedEmail(); diff --git a/nuxt/pages/login/index.vue b/nuxt/pages/login/index.vue index 7368c85..94305cd 100644 --- a/nuxt/pages/login/index.vue +++ b/nuxt/pages/login/index.vue @@ -1,58 +1,60 @@