Null reference when changing password of webapp

More
6 years 6 months ago - 6 years 6 months ago #3085 by BinarySouls
Version: 2.8.6 f2

(Also tested on a fresh project)

When creating a web app, if you change the password that says "change_this", when clicking on Refresh or New after validating the web app, it returns "Object reference not set to an instance of an object".

Commenting out the entire "wrong password" (the following code) check of the web app makes that error to not appear:
if (LocalizationPassword!="change_this" && (action=="GetSpreadsheetList" || action=="NewSpreadsheet" || action=="SetLanguageSource") &&
     e!==undefined && e.parameters.password!=LocalizationPassword)
  {
      return ContentService.createTextOutput("Wrong Password").setMimeType(ContentService.MimeType.TEXT);
  }
Last edit: 6 years 6 months ago by BinarySouls.

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #3086 by Frank
Hi,
Changing the password feature requires 2.8.7b3 or higher.
inter-illusion.com/forum/i2-localization...ty?limitstart=0#3064

That version can be downloaded from the beta folder. I plan on uploading it to the AssetStore by the end of the week.
In the meantime, the password shouldn't be changed in the WebService (i.e. it should be kept as "change_this" so that it gets ignored).

I understand that's confusing, so I just placed a comment in the WebService to avoid further confusion until 2.8.7 is in the AssetStore.

Hope that helps,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The following user(s) said Thank You: BinarySouls

Please Log in or Create an account to join the conversation.

Time to create page: 0.128 seconds
Template by JoomlaShine