Jump to content

Account commands doesn't work with me


Guest K3v1n

Recommended Posts

I have this in my lua:

function changePassword ( password ) 
    passwordChanged = setAccountPassword ( getClientName ( source ), password ) 
  
    if passwordChanged then 
        outputChatBox ( "Your password has been changed into " .. password .. ".", source ) 
    else 
        outputChatBox ( "Unknown error.", source ) 
    end 
end 

If I type changepassword ***** in my console, I don't even get the message "Unknown error." but the console says:

WARNING: main.lua: Access denied @ 'setAccountPassword' - Line: 38 

I also have it with addAccount ( ... ) and all the account commands were you need to overwrite the accounts list but I have disabled read only for my accounts.xml. I have tried everything I knew. :(

Link to comment

I have this in my lua:

function changePassword ( password )    passwordChanged = setAccountPassword ( getClientName ( source ), password )     if passwordChanged then        outputChatBox ( "Your password has been changed into " .. password .. ".", source )    else        outputChatBox ( "Unknown error.", source )    endend

If I type changepassword ***** in my console, I don't even get the message "Unknown error." but the console says:

WARNING: main.lua: Access denied @ 'setAccountPassword' - Line: 38

I also have it with addAccount ( ... ) and all the account commands were you need to overwrite the accounts list but I have disabled read only for my accounts.xml. I have tried everything I knew. :(

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...