Commit 1e0af88
authored
fix mysql username rename (hestiacp#2775)
* fix mysql username rename
there was actually 2 bugs here:
1: the 3rd argument to v-change-database-user mixed the old name with the new name, so the command became "rename old_name to old_name", which broke mysql username rename completely.
2: even if the username rename worked (which it didn't), render_page() would still render with the old mysql username, not the new one. fixed that by forcing a page GET reload after changing username.1 parent 254007e commit 1e0af88
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | | - | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
| |||
0 commit comments