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

How to access this->request from user_external module? #250

Open
joe-average-user opened this issue Apr 7, 2024 · 2 comments
Open

How to access this->request from user_external module? #250

joe-average-user opened this issue Apr 7, 2024 · 2 comments
Labels
question Further information is requested

Comments

@joe-average-user
Copy link

joe-average-user commented Apr 7, 2024

Hello,

I am trying to write another module for user_external but need to access this->request data for it. I found out that the current code has no valid request field. Is there an easy way (probably inside my module) to gain access to this->request?

I read other apps, but did not really find an abstract doc for this. Maybe a more experienced app author can give me a hint?

Thank you for helping ...

@violoncelloCH violoncelloCH added question Further information is requested and removed enhancement New feature or request 0. Needs triage labels Apr 7, 2024
@violoncelloCH
Copy link
Member

I don't know, but I don't think that this is possible even for an app in Nextcloud, since only the index.php file gets access to this->request by default...
why would you need access to that object?

@joe-average-user
Copy link
Author

Lets say you want to process the remote IP address for some reason, how do you do that without this->request->getRemoteAddress() from OCP/IRequest ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants