mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
* #8754 fix issue with default user role on create, profile navigation issue * #8754 fix user edit form success/error message cleanup issue
This commit is contained in:
parent
9f48e75945
commit
a697a664fa
@ -23,7 +23,7 @@ exports.handler = function(request,response,state) {
|
||||
// Clean up any existing error/success messages if the user_id is different from the "$:/temp/mws/user-info/preview-user-id"
|
||||
var lastPreviewedUser = $tw.wiki.getTiddlerText("$:/temp/mws/user-info/" + user_id + "/preview-user-id");
|
||||
|
||||
if(user_id !== lastPreviewedUser) {
|
||||
if(user_id !== lastPreviewedUser || request.url.includes("preview")) {
|
||||
$tw.mws.store.adminWiki.deleteTiddler("$:/temp/mws/change-password/" + user_id + "/ error");
|
||||
$tw.mws.store.adminWiki.deleteTiddler("$:/temp/mws/change-password/" + user_id + "/success");
|
||||
$tw.mws.store.adminWiki.deleteTiddler("$:/temp/mws/login/error");
|
||||
|
@ -23,7 +23,7 @@ title: $:/plugins/tiddlywiki/multiwikiserver/templates/get-users
|
||||
<$list filter="[<user-list>jsonindexes[]]" variable="user-index">
|
||||
<$let currentUser={{{ [<user-list>jsonextract<user-index>] }}}>
|
||||
<$set name="user-id" value={{{ [<currentUser>jsonget[user_id]] }}}>
|
||||
<a href={{{ [[/admin/users/]addsuffix<user-id>] }}} class="user-item">
|
||||
<a href={{{ [[/admin/users/]addsuffix<user-id>addsuffix[?q=preview]] }}} class="user-item">
|
||||
<div class="user-info">
|
||||
<span class="user-name">
|
||||
<$text text={{{ [<currentUser>jsonget[username]] }}}/>
|
||||
|
Loading…
Reference in New Issue
Block a user