Skip to content

Commit

Permalink
Allow RS accounts to be used for account aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
markkacom committed Jul 5, 2014
1 parent 249af2f commit 1e5786a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions html/ui/js/nrs.aliases.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,17 @@ var NRS = (function(NRS, $, undefined) {
if (!(/acct:(\d+)@fim/.test(data.aliasURI)) && !(/nacc:(\d+)/.test(data.aliasURI))) {
if (/^\d+$/.test(data.aliasURI)) {
data.aliasURI = "acct:" + data.aliasURI + "@fim";
} /*else if (/^FIM-.+$/.test(data.aliasURI)) {
}*/ else {
} else if (/^FIM-.+$/.test(data.aliasURI)) {
/* XXX - Allow the use of RS accounts for account aliases registration */
var address = new NxtAddress();
if (address.set(data.aliasURI)) {
data.aliasURI = "acct:" + address.account_id() + "@fim";
} else {
return {
"error": "Invalid account ID."
};
}
} else {
return {
"error": "Invalid account ID."
};
Expand Down

0 comments on commit 1e5786a

Please sign in to comment.