Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change root password #29

Closed
losttheplot opened this issue Mar 24, 2016 · 1 comment
Closed

Unable to change root password #29

losttheplot opened this issue Mar 24, 2016 · 1 comment

Comments

@losttheplot
Copy link

Thanks for making this starter kit available. I'm new to Lavarel so forgive me if I'm missing something obvious, but how does one change the root password as root without modifying line 122 of /app/User.php to something like the following?

        // Protect the root user from edits.
        if ('root' == $this->username && Auth::user()->id != $this->id) {
            return false;
        }

And if the root user record is opened up for potential changes of all data, this could lead to the root username being changed, which is used in places such as the above snippet. What am I missing please?

@sroutier
Copy link
Collaborator

Hey Roy,

You are not missing anything. Infact you found a pretty embarrassing bug....
Just fixed it, thanks for submitting the issue. Totally did not see that one coming.

Cheers mate, Let me know if you have any other issues or questions.

/Seb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants