Community discussions

MikroTik App
 
tabraham
newbie
Topic Author
Posts: 27
Joined: Wed Feb 08, 2017 10:18 pm
Location: Germany
Contact:

User Manager V7.8 custom error messages

Sun Apr 30, 2023 1:34 am

Hello all,

I am using the ne user manager in the cloud CHR to allow users to authenticate to multiple sites. The sites are connected to the could CHR via wire guard. Everything works fines. Now i am redesigning the login page so that I can have custom error messages. This was working with the v6.8 but with the latest v7.8 it is not working. I have checked the server return error messages for the v6.8 and designed the html accordingly but for the v7.8 the error message for no user or no user profile found both returns the error message as RADIUS server is not responding

I want to have 4 separate error messages
  1. Username or password incorrect (when either the username or password is incorrect)
  2. No user found (when the username is not found in the user-manager database)
  3. No valid user profile found (when the username is found but either no profile is assigned or the profile is expired)
  4. RADIUS server is not responding (when there is failed communication with the RADIUS server)
Can someone please help me?

FYI, in the usermanger 6.8 i have edited the login.html with the following core to achieve it
<p class="info $(if error)alert$(endif)">
$(if error)
	<div style="color: #FF8080; text-align: center">
		<script type="text/javascript">
		var error = "$(error)";
		if (error == "simultaneous session limit reached") {
			document.write("Maximum simultaneous session limits reached<br><br>");
		}
		else if (error == "invalid password") {
			document.write("Sorry Invalid Password.<br>Please enter your password carefully<br><br>");
		}
		else if (error == "no valid profile found") {
			window.location= "404.html";
			document.write("Your 1 month validity has expired.<br>Please contact reception to buy a new ticket<br><br>");
		}
		else if(error.search("not found") != -1) {
			document.write("User Not Found.<br>Please contact reception with your ticket<br><br>");
		}
		else document.write("$(error)<br>")
		</script>
	</div>
	$(endif)
</p>
 
ramonvb
just joined
Posts: 2
Joined: Fri Nov 17, 2023 1:06 am

Re: User Manager V7.8 custom error messages

Fri Nov 24, 2023 4:22 am

Hi, did you find the solution to this error?
I'm facing the same problem
 
salem17
just joined
Posts: 2
Joined: Sun Sep 24, 2023 2:43 pm

Re: User Manager V7.8 custom error messages

Fri Feb 02, 2024 4:38 am

I found that is related to the file WISPAccessGatewayParam.xsd
 
Sector
just joined
Posts: 3
Joined: Fri Sep 02, 2011 8:33 am

Re: User Manager V7.8 custom error messages

Fri Mar 01, 2024 2:37 pm

Same probles was resolved in hotspot & um on v7: simply Increased RADIUS timeout value in config

Who is online

Users browsing this forum: No registered users and 11 guests