owncloud / oauth2

🔐 Application for using OAuth 2.0 in ownCloud
GNU Affero General Public License v3.0
32 stars 24 forks source link

Fill login_hint with username #328

Closed butonic closed 2 years ago

butonic commented 2 years ago

The oauth2 app uses js to fill the login with the user from the redirect url. Why exactly I don't know. The LoginController in core already picks up a user parameter and fills the login form username with it. AFAICT the code picks up the user from the redirect url. Who knows where that is used.

In any case this PR looks up the user and uses the username instead of the userid. Similar to https://github.com/owncloud/core/pull/39870

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication