Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit ae8c2ed

Browse files
committed
remove messages about things that are done automatically in setup & might confuse users
* Removes the token from the auth page so people don't try to put it in the config manually and mess up. * Removes the message from the config template about renaming it. If beginners do that without understanding things, they overwrite their existing config.
1 parent 9e0d20c commit ae8c2ed

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/auth_web.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,15 @@ def code(self, var=None, **params): # pylint: disable=unused-argument
6363

6464
alexapi.config.set_variable(['alexa', 'refresh_token'], resp['refresh_token'])
6565

66-
return (
67-
"<h2>Success!</h2><h3> Refresh token has been added to your "
68-
"config file, you may now reboot the Pi </h3><br>{}"
69-
).format(resp['refresh_token'])
66+
return "<h2>Success!</h2>" \
67+
"<p>The refresh token has been added to your config file.</p>" \
68+
"<p>Now:</p>" \
69+
"<ul>" \
70+
"<li>close your this browser window,</li>" \
71+
"<li>exit the setup script as indicated,</li>" \
72+
"<li>and follow the Post-installation steps.</li>" \
73+
"</ul>"
74+
7075

7176
index.exposed = True
7277
code.exposed = True

src/config.template.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Rename this file to config.yaml and fill in the fields
2-
31
# See https://github.com/alexa-pi/AlexaPi/wiki/Audio-setup-&-debugging
42
# to get a better idea of how to set things in here
53

0 commit comments

Comments
 (0)