Rut241 & Rut200 Trouble setting password

Hi,

I am having trouble setting up the last part of my automatic setup of the rut using the RMS developer API.

But i can’t get the password to be consistent. One day it works perfectly everytime and today, it won’t work even once.

It does not even work for me after setting it up in the RMS management page, i still get “Password does not meet requirements”.

The passwords i have tried are:

  • Password1!
  • Z0wuDMVAasd123asd*
  • }Z0wu+DMV

Those do not work.

But they pass these requirements:

I have tried both with /set and /upload endpoints, they don’t often work.

This is the code i am using:

    const min = 8;
    const max = 16;
    // Define allowed character sets
    const uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
    const lowercase = 'abcdefghijklmnopqrstuvwxyz';
    const numbers = '0123456789';
    const special = '~!@#$%^&*()_-+={}[]|/:;<>.?'; // Adjust this based on allowed special characters
    const allChars = uppercase + lowercase + numbers + special;

    // Generate a random length within the range
    const length = Math.floor(Math.random() * (max - min + 1)) + min;

    let password = '';

    // Ensure at least one character from each required set
    password += uppercase[Math.floor(Math.random() * uppercase.length)];
    password += lowercase[Math.floor(Math.random() * lowercase.length)];
    password += numbers[Math.floor(Math.random() * numbers.length)];
    password += special[Math.floor(Math.random() * special.length)];

    // Fill the rest of the password with random characters from the allowed set
    while (password.length < length) {
        const char = allChars[Math.floor(Math.random() * allChars.length)];

        // Avoid consecutive identical characters
        if (password[password.length - 1] !== char) {
            password += char;
        }
    }

    return password;

Thank you in advance,
Hope someone can help, or have some code, that is more efficient at generating codes.

Troubleshooted a bit, if the RUT has not connected to RMS yet, it will just return password does not met requirement, even if it does. It needs to be connected first, for some reason.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.