mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
Allow the user log-in, since the URL to suggest a license is restricted
This commit is contained in:
parent
dc0deb0326
commit
2d3c449b36
@ -121,8 +121,9 @@ class LicenseSuggestion
|
||||
license = repositoryInfo.license
|
||||
@setStatus "Error", @repositoryLicense repositoryFullName, license
|
||||
else # The repository is unlicensed
|
||||
window.location.href =
|
||||
"https://github.com/#{repositoryFullName}/community/license/new?template=#{@licenseId}"
|
||||
licenseUrl = encodeURIComponent "https://github.com/#{repositoryFullName}/community/license/new?template=#{@licenseId}"
|
||||
# Provide the chance to the user log-in, since the URL to suggest a license is restricted
|
||||
window.location.href = "https://github.com/login?return_to=#{licenseUrl}"
|
||||
@setStatus ""
|
||||
@inputEl.val("")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user