simonv3/quick-survey

sandstrom login credentials

Closed this issue · 6 comments

Hi - can you tell me where I set up the "fake sandstorm" login credentials if I'm running this locally on meteor - I can't seem to find out where to put this?
e.g. SandstormAccounts.setTestUserInfo({
id: "12345",
name: "Alice",
// ... other parameters, as listed above ...
});
Thanks
Frank

In the console in your browser should work fine IIRC.

Thanks - it inserts into mongo but I'm not sure how to give myself admin privileges - just not familiar enough with sandstorm - can u help with string ...
SandstormAccounts.setTestUserInfo({id: "12345",name: "Alice", permissions: [name: "admin"]});

I think:

SandstormAccounts.setTestUserInfo({
  id: 1,
  name: "Alice",
  permissions: ['owner']
});

Just added some instructions to the README.md, let me know if they work:

8d70111

That works - thanks
Just not enough info on sandstorm

That's actually on my end, the permission levels are defined by the app itself, not by sandstorm. You can see the full list here: https://github.com/simonv3/quick-survey/blob/develop/.sandstorm/sandstorm-pkgdef.capnp#L155