Skip to content

Commit

Permalink
Pull updated raspiwifi.conf values for display on WPA settings confir…
Browse files Browse the repository at this point in the history
…mation page. Also some cosmetic changes
  • Loading branch information
jasbur committed Jan 24, 2019
1 parent d55675b commit c253923
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions libs/configuration_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def sleep_and_reboot_for_wpa():
t = Thread(target=sleep_and_reboot_for_wpa)
t.start()

config_hash = config_file_hash()
return render_template('save_wpa_credentials.html', wpa_enabled = config_hash['wpa_enabled'], wpa_key = config_hash['wpa_key'])


Expand Down
12 changes: 9 additions & 3 deletions libs/configuration_app/templates/save_wpa_credentials.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
{% block body %}
<div id="saveCredentialsOutput">
<p>WPA in Confirguration Mode set to:</p>
<span class="saveCredentialsSSID">WPA Enabled: {{wpa_enabled}}</span></br>
<span class="saveCredentialsSSID">WPA Key: {{wpa_key}}</span>
<p>Your device will now reboot and should be connected to your access point soon.</p>
<span class="saveCredentialsSSID">WPA Enabled:
{% if wpa_enabled == '1': %}
Yes</span></br>
<span class="saveCredentialsSSID">WPA Key: {{wpa_key}}</span>
<p>Your device will now reboot. You can connect to it using the WPA Key above for further configuration.</p>
{% else: %}
No</span></br>
<p>Your device will now reboot. A WPA Key will NOT be required for further configuration.</p>
{% endif %}
</div>
{% endblock %}

0 comments on commit c253923

Please sign in to comment.