remove run as admin option

This commit is contained in:
Bryan Gerlach
2025-11-19 11:24:35 -06:00
parent e46d0bd0ef
commit 5052bec676
4 changed files with 12 additions and 14 deletions

View File

@@ -430,15 +430,15 @@ jobs:
sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart
sed -i '/let (request, url) =/,/Ok(())/{/Ok(())/!d}' ./src/common.rs sed -i '/let (request, url) =/,/Ok(())/{/Ok(())/!d}' ./src/common.rs
- name: run as admin # - name: run as admin
continue-on-error: true # continue-on-error: true
if: ${{ fromJson(inputs.extras).runasadmin == 'true' }} # if: ${{ fromJson(inputs.extras).runasadmin == 'true' }}
shell: bash # shell: bash
run: | # run: |
sed -i '/<\/compatibility>/a \ # sed -i '/<\/compatibility>/a \
<security> \ # <security> \
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> \ # <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> \
</security>' ./flutter/windows/runner/runner.exe.manifest # </security>' ./flutter/windows/runner/runner.exe.manifest
- name: Report Status - name: Report Status
uses: fjogeleit/http-request-action@v1 uses: fjogeleit/http-request-action@v1

View File

@@ -48,7 +48,7 @@ class GenerateForm(forms.Form):
#Security #Security
passApproveMode = forms.ChoiceField(choices=[('password','Accept sessions via password'),('click','Accept sessions via click'),('password-click','Accepts sessions via both')],initial='password-click') passApproveMode = forms.ChoiceField(choices=[('password','Accept sessions via password'),('click','Accept sessions via click'),('password-click','Accepts sessions via both')],initial='password-click')
permanentPassword = forms.CharField(widget=forms.PasswordInput(), required=False) permanentPassword = forms.CharField(widget=forms.PasswordInput(), required=False)
runasadmin = forms.ChoiceField(choices=[('false','No'),('true','Yes')], initial='false') #runasadmin = forms.ChoiceField(choices=[('false','No'),('true','Yes')], initial='false')
denyLan = forms.BooleanField(initial=False, required=False) denyLan = forms.BooleanField(initial=False, required=False)
enableDirectIP = forms.BooleanField(initial=False, required=False) enableDirectIP = forms.BooleanField(initial=False, required=False)
#ipWhitelist = forms.BooleanField(initial=False, required=False) #ipWhitelist = forms.BooleanField(initial=False, required=False)

View File

@@ -308,8 +308,6 @@
<div class="container"> <div class="container">
<div class="section"> <div class="section">
<h2><i class="fas fa-shield-alt"></i> Security</h2> <h2><i class="fas fa-shield-alt"></i> Security</h2>
<label for="{{ form.runasadmin.id_for_label }}">Always run as Administrator?</label>
{{ form.runasadmin }}<br><br>
<label for="{{ form.passApproveMode.id_for_label }}">Password Approve mode:</label> <label for="{{ form.passApproveMode.id_for_label }}">Password Approve mode:</label>
{{ form.passApproveMode }}<br><br> {{ form.passApproveMode }}<br><br>
<div id="passwordRequirement" class="password-requirement">To use the hide connection window feature, please set a permanent password.</div> <div id="passwordRequirement" class="password-requirement">To use the hide connection window feature, please set a permanent password.</div>

View File

@@ -54,7 +54,7 @@ def generator_view(request):
permPass = form.cleaned_data['permanentPassword'] permPass = form.cleaned_data['permanentPassword']
theme = form.cleaned_data['theme'] theme = form.cleaned_data['theme']
themeDorO = form.cleaned_data['themeDorO'] themeDorO = form.cleaned_data['themeDorO']
runasadmin = form.cleaned_data['runasadmin'] #runasadmin = form.cleaned_data['runasadmin']
passApproveMode = form.cleaned_data['passApproveMode'] passApproveMode = form.cleaned_data['passApproveMode']
denyLan = form.cleaned_data['denyLan'] denyLan = form.cleaned_data['denyLan']
enableDirectIP = form.cleaned_data['enableDirectIP'] enableDirectIP = form.cleaned_data['enableDirectIP']
@@ -190,7 +190,7 @@ def generator_view(request):
#github limits inputs to 10, so lump extras into one with json #github limits inputs to 10, so lump extras into one with json
extras = {} extras = {}
extras['genurl'] = _settings.GENURL extras['genurl'] = _settings.GENURL
extras['runasadmin'] = runasadmin #extras['runasadmin'] = runasadmin
extras['urlLink'] = urlLink extras['urlLink'] = urlLink
extras['downloadLink'] = downloadLink extras['downloadLink'] = downloadLink
extras['delayFix'] = 'true' if delayFix else 'false' extras['delayFix'] = 'true' if delayFix else 'false'