Self User Reset Password

Is there a way to create a page to make possible for a user reset his password with a new one?

Thanks.

Michele

Hi ,
i don’t know it’s possible or not , but i’m sure you can write a very simple software with C# then your user can use for changing password :slight_smile:

if you are not familiar with programming i can help you

Ok i will accept your help, also by invoicing payment.

I need a script to generate user in mikrotik user manager from a excel file. I have already done one script in php, but it doesn’t works properly, for example, the user is created and it works, but if you want to change password for him by ssh the system write: no such item. If you try to change password by web interface all seems ok.

I need the second script for changing password by user himself. I already made a script in php that works by ssh correctly. But it cannot work if you try to change password of users generated by ssh script.

Let me know in which way we can do the work, asap.

Thanks,

Michele

Are you ready to pay for it ?:wink:
take it easy man , check my signature :slight_smile:

anyway : in ROS when you are creating any user it belongs to a user group : full,read,write
do you setting your group to full when you are creating user with php ?? maybe that’s why you are unable to change its password later

if it doesn’t help : here is a good document http://wiki.mikrotik.com/wiki/API_in_C_Sharp
if you are familiar with php so you know programming concepts , it’s a class n C# which you can easily communicate with your ROS :sunglasses:

I have tried all that i can try, but no success.

The script that i used to create a user, inside the user manager is:

/tool user-manager user
add username=USERNAME password=PASSWORD last-name=“SURNAME” first-name=“NAME” customer=admin copy-from=test

Now the user is able to login to the hot spot, with the credential USERNAME and PASSWORD, but if i want to change the user by using the command:

/tool user-manager user set USERNAME password=NEW_PASSWORD

i obtain the result: no such item

In what is wrong my work?

Thanks a lot.

It’s just about programming basics !

String always surrounded by quotations in the most programming and scripting languages :slight_smile:


/tool user-manager user
add username=“USERNAME” password=“PASSWORD” last-name=“SURNAME” first-name=“NAME” customer=admin copy-from=test

/tool user-manager user set “USERNAME” password=“NEW_PASSWORD”