<?php
namespace App\Models;
+use Backpack\Base\app\Notifications\ResetPasswordNotification as ResetPasswordNotification;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
+
class AuthClient extends Authenticatable implements CanResetPasswordContract
{
protected $hidden = [
'remember_token',
];
+
+ public function sendPasswordResetNotification($token)
+ {
+ $this->notify((new ResetPasswordNotification($token))->locale('fr'));
+ }
}
--- /dev/null
+<?php
+
+namespace App\Models;
+
+use App\User;
+use Backpack\Base\app\Models\Traits\InheritsRelationsFromParentModel;
+use Backpack\Base\app\Notifications\ResetPasswordNotification as ResetPasswordNotification;
+
+class ClientUser extends User
+{
+ use InheritsRelationsFromParentModel;
+
+ protected $table = 'clients';
+
+ /**
+ * Send the password reset notification.
+ *
+ * @param string $token
+ *
+ * @return void
+ */
+ public function sendPasswordResetNotification($token)
+ {
+ $this->notify((new ResetPasswordNotification($token))->locale('fr'));
+ }
+
+ /**
+ * Get the e-mail address where password reset links are sent.
+ *
+ * @return string
+ */
+ public function getEmailForPasswordReset()
+ {
+ return $this->email;
+ }
+}
namespace App;
+use Backpack\Base\app\Notifications\ResetPasswordNotification as ResetPasswordNotification;
use Illuminate\Notifications\Notifiable;
-use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Backpack\CRUD\CrudTrait;
use Spatie\Permission\Traits\HasRoles;
+use Cubist\Backpack\Facades\App;
class User extends Authenticatable
{
protected $hidden = [
'password', 'remember_token',
];
+
+ public function sendPasswordResetNotification($token)
+ {
+ $this->notify((new ResetPasswordNotification($token))->locale(App::getLocale()));
+ }
+
}
--- /dev/null
+{
+ "name": "John Doe"
+}
this.price = parseFloat(this.$refs.optprice ?.dataset.default).toFixed(2)
this.statusText = this.$refs.statusConfig ?.dataset.incomplete
this.discount = this.$refs.discount ?.dataset.value
- this.validateAction = this.$refs.forgotpwd ?.dataset.status
+ this.validateAction = this.$refs.forgotpwd ?.dataset.status //specific code for the forgot password confirmation
},
watch: {
'failed' => 'These credentials do not match our records.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
-
];
--- /dev/null
+<?php
+
+return [
+ 'regards' => 'Regards',
+ 'footer_part1' => 'If you’re having trouble clicking the',
+ 'footer_part2' => 'button, copy and paste the URL below',
+ 'footer_part3' => ' into your web browser:<br>',
+];
'failed' => 'Ces identifiants s',
'throttle' => 'Trop de tentatives. Veuillez patienter :seconds secondes.',
-
];