mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
431 B
17 lines
431 B
10 years ago
|
var assert = require("assert")
|
||
|
|
||
|
var toNerfDart = require("./nerf-dart.js")
|
||
|
|
||
|
module.exports = clearCredentialsByURI
|
||
|
|
||
|
function clearCredentialsByURI (uri) {
|
||
|
assert(uri && typeof uri === "string", "registry URL is required")
|
||
|
|
||
|
var nerfed = toNerfDart(uri)
|
||
|
|
||
|
this.del(nerfed + ":_authToken", "user")
|
||
|
this.del(nerfed + ":_password", "user")
|
||
|
this.del(nerfed + ":username", "user")
|
||
|
this.del(nerfed + ":email", "user")
|
||
|
}
|