Add cloudron purpose to appstore login/signup flow

This commit is contained in:
Johannes Zellner
2020-01-30 15:36:05 +01:00
parent 0315ae511b
commit 300ab191fe
3 changed files with 17 additions and 3 deletions

View File

@@ -2206,11 +2206,12 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.registerCloudron = function (email, password, totpToken, signup, callback) {
Client.prototype.registerCloudron = function (email, password, totpToken, signup, purpose, callback) {
var data = {
email: email,
password: password,
signup: signup
signup: signup,
purpose: purpose
};
if (totpToken) data.totpToken = totpToken;