sdebacker / TypiCMS

Multilingual CMS built with Laravel 4.2
MIT License
474 stars 119 forks source link

Prevent ability to delete first superadmin user #106

Closed armababy closed 9 years ago

armababy commented 9 years ago

Hello,

Just installed your CMS, looking good and speedy. But i just went on to pretend i'm moron and deleted demo user and superuser that were created on installation (me) and now obviously i'm locked out of admin, because no users are available :)

Is it by design or it's just one thing that slipped trough? CMS should prevent from deleting user with id 1

sdebacker commented 9 years ago

That is a thing that slipped, now a connected user cannot de deteled.

sdebacker commented 9 years ago

Thanks for the issue.