-
Notifications
You must be signed in to change notification settings - Fork 56
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
sudo-su breaks application when it doesn't like your hostname #12
Comments
Thank so much for the feedback -- greatly appreciated! I'll address each of your points here:
AFAIK, there isn't a way to do this. If the user renders a partial that doesn't exist, Laravel will throw an error and there isn't a way for the package to handle/catch that? Or did you have something else in mind?
Good idea, I'll add this to my to-do list.
tag in a partial instead of publishing /public/sudo-su/css/app.css
Do people use that as a TLD? As in, |
When you publish package check in config path to User Model. I have smillar problem when try use. |
@DarkCobalt I don't think that's the problem here -- OP is getting an issue when rendering the view. |
I meant
There is, just don't handle this logic in the package. Users should decide themselves whether to load the view based on the values of APP_ENV, APP_DEBUG or whatever. I understand that this was done with good intentions in mind (to maybe lessen the security risk), but because of the way this was implemented sudo-su unilaterally decides to not register the view based on the value of If you feel like some values in |
Hey, great package. I have tried it today and I feel like there are few issues that need to be addressed.
Firstly, sudo-su should fail more gracefully. More specifically, I think lines like this don't make any sense.
For example, if you install sudo-su and don't add your virtual host to the list of
allowed_tlds
, you will get this Exception:When it would be much better if only sudo-su didn't work (silently failed).
On a side note:
user-selector
view/public/sudo-su/css/app.css
localhost
to the list of allowed tlds?The text was updated successfully, but these errors were encountered: