Disable account registering from disabled email provider

This commit is contained in:
Peter Papp
2021-07-23 13:28:40 +02:00
parent 8951ebc69f
commit eaec744356
30 changed files with 733 additions and 71 deletions

View File

@@ -33,6 +33,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
* @method static sortable(string[] $array)
* @method static forceCreate(array $array)
* @method static where(string $string, string $string1, string $toDateString)
* @method static create(array $array)
*/
class User extends Authenticatable implements MustVerifyEmail
{
@@ -91,7 +92,7 @@ class User extends Authenticatable implements MustVerifyEmail
*/
public function getStorageAttribute(): array
{
$is_storage_limit = get_setting('storage_limitation') ?? 1;
$is_storage_limit = get_settings('storage_limitation') ?? 1;
if (! $is_storage_limit) {
return [