Skip to content

Commit

Permalink
Merge pull request #33 from jaylikesbunda/main
Browse files Browse the repository at this point in the history
v1.2.1
  • Loading branch information
jaylikesbunda authored Jan 24, 2025
2 parents f57f19a + 624689f commit c7f3da2
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.2.1

- Added 'apcred' commands to change and reset WebUI SSID & Password

## v1.2.0

- Added Variable Sniff command replacing individual commands
Expand Down
36 changes: 36 additions & 0 deletions src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,42 @@ static const MenuCommand wifi_commands[] = {
"- Portal settings\n"
"- Landing page\n",
},
{
.label = "Set WebUI Creds",
.command = "apcred",
.capture_prefix = NULL,
.file_ext = NULL,
.folder = NULL,
.needs_input = true,
.input_text = "MySSID MyPassword",
.needs_confirmation = false,
.confirm_header = NULL,
.confirm_text = NULL,
.details_header = "Set AP Credentials",
.details_text = "Set custom WebUI AP:\n"
"Format:\nMySSID MyPassword\n"
"Example: GhostNet,spooky123\n",
},
{
.label = "Reset WebUI Creds",
.command = "apcred -r\n",
.capture_prefix = NULL,
.file_ext = NULL,
.folder = NULL,
.needs_input = false,
.input_text = NULL,
.needs_confirmation = true,
.confirm_header = "Reset AP Credentials",
.confirm_text = "Reset WebUI AP to\n"
"default credentials?\n"
"SSID: GhostNet\n"
"Password: GhostNet\n",
.details_header = "Reset AP Credentials",
.details_text = "Restores default WebUI AP:\n"
"SSID: GhostNet\n"
"Password: GhostNet\n"
"Requires ESP reboot\n",
},
{
.label = "Connect To WiFi",
.command = "connect",
Expand Down
2 changes: 1 addition & 1 deletion src/settings_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ bool settings_custom_event_callback(void* context, uint32_t event_id) {
"Updated by: Jay Candel\n"
"Built with <3";

confirmation_view_set_header(app_state->confirmation_view, "Ghost ESP v1.2");
confirmation_view_set_header(app_state->confirmation_view, "Ghost ESP v1.2.1");
confirmation_view_set_text(app_state->confirmation_view, info_text);

// Save current view before switching
Expand Down

0 comments on commit c7f3da2

Please sign in to comment.