mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
Revert filescoped (#2227)
* Revert "Add git blame entry (#2226)" This reverts commit239286737d
. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a
.
This commit is contained in:
@ -1,33 +1,34 @@
|
||||
namespace Bit.Setup;
|
||||
|
||||
public class AppIdBuilder
|
||||
namespace Bit.Setup
|
||||
{
|
||||
private readonly Context _context;
|
||||
|
||||
public AppIdBuilder(Context context)
|
||||
public class AppIdBuilder
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
private readonly Context _context;
|
||||
|
||||
public void Build()
|
||||
{
|
||||
var model = new TemplateModel
|
||||
public AppIdBuilder(Context context)
|
||||
{
|
||||
Url = _context.Config.Url
|
||||
};
|
||||
_context = context;
|
||||
}
|
||||
|
||||
// Needed for backwards compatability with migrated U2F tokens.
|
||||
Helpers.WriteLine(_context, "Building FIDO U2F app id.");
|
||||
Directory.CreateDirectory("/bitwarden/web/");
|
||||
var template = Helpers.ReadTemplate("AppId");
|
||||
using (var sw = File.CreateText("/bitwarden/web/app-id.json"))
|
||||
public void Build()
|
||||
{
|
||||
sw.Write(template(model));
|
||||
var model = new TemplateModel
|
||||
{
|
||||
Url = _context.Config.Url
|
||||
};
|
||||
|
||||
// Needed for backwards compatability with migrated U2F tokens.
|
||||
Helpers.WriteLine(_context, "Building FIDO U2F app id.");
|
||||
Directory.CreateDirectory("/bitwarden/web/");
|
||||
var template = Helpers.ReadTemplate("AppId");
|
||||
using (var sw = File.CreateText("/bitwarden/web/app-id.json"))
|
||||
{
|
||||
sw.Write(template(model));
|
||||
}
|
||||
}
|
||||
|
||||
public class TemplateModel
|
||||
{
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class TemplateModel
|
||||
{
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user